An Introduction to Modern Econometrics Using StataTable of Contents " REFACE NOTATION AND TYPOGRAPHY INTRODUCTION An Overview of Stata's Distinctive Features Installing the Necessary Software Installing the Support Materials WORKING WITH ECONOMIC AND FINANCIAL DATA IN STATA The Basics Common Data Transformations ORGANIZING AND HANDLING ECONOMIC DATA Cross-Sectional Data and Identifier Variables Time-Series Data Pooled Cross-Sectional Time-Series Data Panel Data Tools for Manipulating Panel Data Combining Cross-Sectional and Time-Series Datasets Creating Long-Format Datasets with Append The Reshape Command Using Stata for Reproducible Research LINEAR REGRESSION Introduction Computing Linear Regression Estimates Interpreting Regression Estimates Presenting Regression Estimates Hypothesis Tests, Linear Restrictions, and Constrained Least Squares Computing Residuals and Predicted Values Computing Marginal Effects Appendix A: Regression as a Least-Squares Estimator Appendix B: The Large-Sample VCE for Linear Regression SPECIFYING THE FUNCTIONAL FORM Introduction Specification Error Endogeneity and Measurement Error REGRESSION WITH NON-I.I.D. ERRORS The Generalized Linear Regression Model Heteroskedasticity in the Error Distribution Serial Correlation in the Error Distribution REGRESSION WITH INDICATOR VARIABLES Testing for Significance of a Qualitative Factor Regression with Qualitative and Quantitative Factors Seasonal Adjustment with Indicator Variables Testing for Structural Stability and Structural Change INSTRUMENTAL-VARIABLES ESTIMATORS Introduction Endogeneity in Economic Relationships 2SLS The ivreg Command Identification and Tests of Overidentifying Restrictions Computing IV Estimates ivreg2 and GMM Estimation Testing and Overidentifying Restrictions in GMM Testing for Heteroskedasticity in the IV Context Testing the Relevance of Instruments Durbin-Wu-Hausman Tests for Endogeneity in IV Estimation Appendix A: Omitted-Variables Bias Appendix B: Measurement Error PANEL-DATA MODELS FE and RE Models IV Models for Panel Data Dynamic Panel-Data Models Seemingly Unrelated Regression Models Moving-Window Regression Estimates MODELS OF DISCRETE AND LIMITED DEPENDENT VARIABLES Binomial Logit and Probit Models Ordered Logit and Probit Models Truncated Regression and Tobit Models Incidental Truncation and Sample-Selection Models Bivariate Probit and Probit with Selection APPENDIX A: GETTING THE DATA INTO STATA Inputting Data from ASCII Text Files and Spreadsheets Importing Data from Other Package Formats APPENDIX B: THE BASICS OF STATA PROGRAMMING Local and Global Macros Scalars Loop Constructs Matrices return and ereturn The Program and Syntax Statements Using Mata Functions in Stata Programs REFERENCES AUTHOR INDEX SUBJECT INDEX. |
Contents
Introduction | 1 |
Working with economic and financial data in Stata | 7 |
Organizing and handling economic data | 43 |
Linear regression | 69 |
5 | 91 |
Specifying the functional form | 113 |
3 | 132 |
3 | 154 |
Instrumentalvariables estimators | 185 |
Paneldata models | 219 |
Models of discrete and limited dependent variables | 247 |
A Getting the data into Stata | 277 |
B The basics of Stata programming | 289 |
The program and syntax statements | 307 |
References | 321 |
Regression with indicator variables | 161 |
Common terms and phrases
_cons 2SLS autocorrelation Chapter Cntrl Coef coefficients column compute Conf consistent estimates constant term correlated covariance matrix dataset define dependent variable discussed display distribution disturbance process do-file e(sample econometrics economic endogenous regressors equation explanatory factors FGLS foreach format forvalues function heteroskedasticity homoskedasticity indicator variables instance instruments integer Interval ivreg2 lagged large-sample likelihood-ratio test linear regression lnox ldist rooms logit lwage macro marginal effects Mata matrix measure medage missing values Model Residual null hypothesis Number of obs Obs Mean Std observations OLS estimator option P-value panel data parameters popsize population predicted values Prob probit probit model R-squared regression estimates regression model regressors response variable robust sample scalar semean Source SS df specify standard errors Stata commands summarize syntax time-series value label variable name Variable Obs Mean variance varlist vector Wald tests zero