SESSION I: LINEAR REGRESSION WITH ALL EXOGENOUS REGRESSORS
- The OLS estimator: regress
- Categorical variables, dummies, interactions and marginal effects: margins
- Testing hypotheses on model coefficients: test, testparm, lincom, nlcom
- OLS predicted values: predict, margins
- Testing heteroskedasticity: estatimtest, estathettest
- Testing autocorrelation: estat dwatson; estat durbinalt; estat bgodfrey; actest (Baum et al., 2007; Baum et al. 2013); abar (Roodman, 2009)
- Consistent variance-covariance estimators under:
- heteroskedasticity: the regress options vce(robust), vce(hc2), vce(hc3)
- cluster correlation: the regress option vce(cluster clustervar)
- autocorrelation: newey
SESSION II: LINEAR REGRESSION WITH POSSIBLY ENDOGENOUS REGRESSORS
- Optimal estimation and inference under i.i.d. errors with the Two-Stage-Least- Square estimator: ivregress 2sls, ivreg2 (Baum et al 2003, 2007 )
- Optimal estimation and inference under non-i.i.d. errors with overidentified GMM estimators: ivregress gmm , ivreg2
- Consistent variance-covariance estimators under:
- heteroskedasticity: ivregress…,vce(robust);ivreg2…,robust
- cluster correlation: ivregress…,vce(cluster clustervar); ivreg2…,cluster(clustervar)
- twoway cluster correlation: ivreg2…,cluster(varlist)
- autocorrelation: ivregress…,vce(hac kernel); ivreg2…,bw(#)
- Specification tests:
- Testing heteroskedasticity: ivhettest (Baum et al. 2003)
- Testingautocorrelation: actest; abar
- Testing overidentifying restrictions: estat overid
- Testing subsets of overidentifying restrictions: ivreg2…,orthog(varlist_inst)
- Testing subsets of regressors for endogeneity: estat endogenous; ivreg2…,orthog(varlist_regr)
- Tests for weak instruments: ivregress…,first; ivreg2…,first
- A robust test for weak instruments with one endogenous variable: weakivtest
- Inference with weak instruments: ivreg2…,first; condivreg (Mikusheva et al 2006); weakiv
- Estimation and inference using heteroskedasticity without instruments: ivreg2h
SUGGESTED READINGS
- Baum, C. F. (2006). An Introduction to Modern Econometrics using Stata. Stata Press.
- Baum, C. F., Schaffer, M. E. & Stillman, S. (2003). Instrumental variables and GMM: Estimation and testing. The Stata Journal, 3: 1–31.
- Baum, C. F., Schaffer, M. E. & Stillman, S. (2007). Enhanced routines for instrumental variables/generalized method of moments estimation and testing. The Stata Journal 7: 465–506.
- Baum, C. F. & Schaffer, M. E. (2012). IVREG2H: Stata module to perform instrumental variables estimation using heterosledasticity-based instruments.
- Baum, C. F., Schaffer, M. E. (2013). ACTEST: Stata module to perform Cumby-Huisinga general test for autocorrelation in time series.
- Cameron, A. C. & Trivedi, P. K. (2022). Microeconometrics Using Stata, Volume I: Cross-Sectional and Panel Regression Methods. 2nd Edition. Stata Press.
- Chernozhukov, V. & Hansen, C. (2008). The Reduced Form: A Simple Approach to Inference with Weak Instruments. Economics Letters, 100: 68-71.
- Finlay, K. & Magnusson, L. M. (2009). Implementing weak-instrument robust tests for a general class of instrumental-variables models. The Stata Journal, 9: 398-421.
- Finlay, K., Magnusson, L. M. & Schaffer, M. E. (2013). WEAKIV: Weak-instruments-robust tests and confidence intervals for instrumental-variable (IV) estimation of linear, probit and tobit models.
- Lewbel, A. (2012). Using Heteroscedasticity to Identify and Estimate Mismeasured and Endogenous Regressor Models. Journal of Business and Economic Statistics, 30: 67-80.
- Mikusheva, A. & Poi, B. (2006). Tests and confidence sets with correct size when instruments are potentially weak. The Stata Journal, 6: 335-347.
- Olea J. L. M. & Pfluger C. (2013). A robust test for weak instruments. Journal of Business and Economic Statistics, 31: 358-368.
- Pflueger, C. E. & Wang S. (2015). A robust test for weak instruments in Stata. The Stata Journal, 15: 216-225.
- Roodman, D. M. (2009). How to do xtabond2: An introduction to difference and system GMM in Stata. The Stata Journal, 9: 86-13