Day 2A Instrumental Variables, Two-stage Least Squares and Generalized Method of Moments

Size: px
Start display at page:

Download "Day 2A Instrumental Variables, Two-stage Least Squares and Generalized Method of Moments"

Transcription

1 Day 2A nstrumental Variables, Two-stage Least Squares and Generalized Method of Moments c A. Colin Cameron Univ. of Calif.- Davis Frontiers in Econometrics Bavarian Graduate Program in Economics. Based on A. Colin Cameron and Pravin K. Trivedi (2009, 2010), Microeconometrics using Stata (MUS), Stata Press. and A. Colin Cameron and Pravin K. Trivedi (2005), Microeconometrics: Methods and Applications (MMA), C.U.P. March 21-25, 2011 c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program in March Economics 21-25,. Based 2011 on A. 1 Colin / 35 C

2 1. ntroduction 1. ntroduction Problem: OLS inconsistent in model y i = xi 0β + u i if Cov[x i, u i ] 6= 0. Solution: Assume there are instruments z i satisfying Cov[z i, u i ] = 0. f #instruments = #regressors instrumental variables (V) estimator f #instruments > #regressors then use two-stage least squares (2SLS) generalized method of moments (GMM). Complications test of assumptions (exogeneity, endogeneity) weak instruments c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program in March Economics 21-25,. Based 2011 on A. 2 Colin / 35 C

3 1. ntroduction Overview 1 ntroduction. 2 V, 2SLS, GMM: De nitions 3 Data Example 4 nstrumental variable methods in practice 5 V Estimator Properties 6 Nonlinear GMM 7 Endogeneity in nonlinear models 8 Stata 9 Appendix: nstrumental Variables ntuition c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program in March Economics 21-25,. Based 2011 on A. 3 Colin / 35 C

4 2. V, 2SLS and GMM Estimators De nitions 2. V, 2SLS and GMM estimators: De nitions Model is y i = x 0 i β + u i OLS is inconsistent as Cov[x i, u i ] 6= 0. Assume there are instruments z i such that Cov[z i, u i ] = 0. Then Cov[z i, u i ] = 0 ) E[z i u i ] = 0 given E[u i jz i ] = 0. We have the population moment condition E[z i (y i x 0 i β)] = 0. Method of moments: solve the corresponding sample moment condition 1 N N i=1 z i (y i x 0 i β) = 0. c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program in March Economics 21-25,. Based 2011 on A. 4 Colin / 35 C

5 2. V, 2SLS and GMM Estimators nstrumental Variables Estimator nstrumental variables (V) estimator n just-identi ed case (# instruments = # regressors) solve k equations in k unknowns N 1 i z i (y i xi 0 β) = 0 gives the instrumental variables (V) estimator. bβ V = 1 N i =1 z0 i x i N i =1 z0 i y i = (Z 0 X) 1 Z 0 y estimate using Stata 10 command ivregress 2sls Often just one regressor in x i is endogenous (i.e. correlated with u i ). Then one variable in z i is the instrument for this endogenous regressor. the remaining entries in z i are the exogenous variables i.e. exogenous variables are instruments for themselves. c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program in March Economics 21-25,. Based 2011 on A. 5 Colin / 35 C

6 2. V, 2SLS and GMM Estimators GMM Estimator Generalized method of moments estimator n over-identi ed case (# instruments > # regressors) Cannot solve N 1 i z i (y i xi 0 β) = 0. nstead generalized method of moments (GMM) estimator minimizes the quadratic form in N 1 N i =1 z i (y i xi 0 β) Q(β) = 1 0 N i y i xi 0 1 β z i W N N i y i xi 0 β z i = (Z 0 u) 0 W(Z 0 u) The symmetric full-rank weighting matrix W does not depend on β. Then Q(β)/ β = 0 yields the GMM estimator bβ GMM = 1 i x i zi 0 W N N i=1 z i xi 0 i x i zi 0 W N N i=1 z i y i = (X 0 ZW N Z 0 X) 1 X 0 ZW N Z 0 y. c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program in March Economics 21-25,. Based 2011 on A. 6 Colin / 35 C

7 2. V, 2SLS and GMM Estimators Optimal GMM and 2SLS Optimal GMM and 2SLS The variance of b β GMM is smallest when the optimal weighting matrix W N is consistent for (Var[Z 0 u]) 1 Though in the just-identi ed (r = K ) GMM = V for any W N. For homoskedastic errors Var[Z 0 u] = σ 2 N i=1 z 0 i z i Two-stage least squares (2SLS) estimator sets W N = ( N i =1 z0 i z i ) 1 Yields β b 2SLS = (X 0 Z(Z 0 Z) 1 Z 0 X) 1 X 0 Z(Z 0 Z) 1 Z 0 y Estimate using Stata 10 command ivregress 2sls but use robust VCE to guard against errors not homoskedastic. For heteroskedastic errors Var[Z 0 u] = σ 2 N i=1 z 0 i z i Optimal GMM estimator if errors are heteroskedastic errors sets W N = ( N i =1 bu2 i z0 i z i ) 1, bu i = y i x 0 i b β 2SLS estimate using Stata 10 command ivregress gmm. c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program in March Economics 21-25,. Based 2011 on A. 7 Colin / 35 C

8 2. V, 2SLS and GMM Estimators More on 2SLS More on 2SLS 2SLS gets it s name because it can be computed in two-stages. Suppose y 1 depends in part on scalar y 2 which is endogenous Structural equation for y 1 First-stage equation for y 2 y 1i = β 1 y 2i + x1i 0 β 2 + u i y 2i = x1i 0 π 1 + x2i 0 π 2 + v i where x 2 is one or more instruments for y 2 in earlier notation x i = (y 2i x 0 1i )0 and z i = (x 0 1i x 0 2i )0. OLS of y 1 on y 2 and x 1 is inconsistent. 2SLS can be computed as follows 1. First-stage: by 2 as prediction from OLS of y 2 on x 1 and x Structural: Do OLS of y 2 on by 2 and x 2. But this method does not generalize to nonlinear models. c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program in March Economics 21-25,. Based 2011 on A. 8 Colin / 35 C

9 3. Data Example Drug expenditures 3. Data Example: Drug expenditures Example from MUS chapter 6. Drug expenditures for U.S. elderly (ldrugexp) regressed on endogenous private health insurance dummy (hi_empunion) and exogenous regressors de ned by global x2list.. * Read data, define global x2list (exogenous regressors), and summarize d. use mus06data.dta. global x2list totchr age female blhisp linc. keep if linc!=. (302 observations deleted). describe ldrugexp hi_empunion $x2list storage display value variable name type format label variable label ldrugexp float %9.0g log(drugexp) hi_empunion byte %8.0g nsured thro emp/union totchr byte %8.0g Total chronic cond age byte %8.0g Age female byte %8.0g Female blhisp float %9.0g Black or Hispanic linc float %9.0g log(income) c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program in March Economics 21-25,. Based 2011 on A. 9 Colin / 35 C

10 3. Data Example Drug expenditures Summary statistics. summarize ldrugexp hi_empunion $x2list Variable Obs Mean Std. Dev. Min Max ldrugexp hi_empunion totchr age female blhisp linc Sample is % have employer or union-sponsored health insurance. c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program inmarch Economics 21-25, Based on A. 10 Colin / 35 C

11 3. Data Example OLS Estimates OLS estimates OLS is inconsistent if hi_empunion endogenous. * OLS. regress ldrugexp hi_empunion $x2list, vce(robust) Linear regression Number of obs = F( 6, 10082) = Prob > F = R-squared = Root MSE = Robust ldrugexp Coef. Std. Err. t P> t [95% Conf. nterval] hi_empunion totchr age female blhisp linc _cons Drug expenditure increases by 7.4% if have private insurance. c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program inmarch Economics 21-25, Based on A. 11 Colin / 35 C

12 3. Data Example nstruments nstruments A valid instrument for private health insurance (hi_empunion) must not be directly a cause of ldrugexp (so uncorrelated with u i ) i.e. must not belong in the model for ldrugexp and to be relevant should be correlated with hi_empunion Possible instrument 1 ssiratio = social security income income from all other sources need to assume that the direct role of income is adequately captured by the regressor linc Possible instrument 2 multlc = 1 if rm has multiple locations need to assume that rm size does not e ect ldrugexp c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program inmarch Economics 21-25, Based on A. 12 Colin / 35 C

13 3. Data Example nstruments Two possible instruments ssiratio and multlc. * Two available instruments for hi_empunion. describe ssiratio multlc storage display value variable name type format label variable label ssiratio float %9.0g SS/ncome ratio multlc byte %8.0g Multiple locations. summarize ssiratio multlc Variable Obs Mean Std. Dev. Min Max ssiratio multlc correlate hi_empunion ssiratio multlc (obs=10089) hi_emp~n ssiratio multlc hi_empunion ssiratio multlc Correlation between z and x is low e.g. Cor[z, x] = 0.21 for ssiratio c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program inmarch Economics 21-25, Based on A. 13 Colin / 35 C

14 3. Data Example V estimates V estimates V estimates using the single instrument ssiratio for hi_empunion. * V estimator with ssiratio as single instrument for hi_empunion. ivregress 2sls ldrugexp (hi_empunion = ssiratio) $x2list, vce(robust) nstrumental variables (2SLS) regression Number of obs = Wald chi2(6) = Prob > chi2 = R-squared = Root MSE = Robust ldrugexp Coef. Std. Err. z P> z [95% Conf. nterval] hi_empunion totchr age female blhisp linc _cons nstrumented: hi_empunion nstruments: totchr age female blhisp linc ssiratio Coe cient even changes sign, from (OLS) to (V). Standard error increases from (OLS) to (V). c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program inmarch Economics 21-25, Based on A. 14 Colin / 35 C

15 3. Data Example 2SLS estimates 2SLS Estimates Overidenti ed as two instruments ssiratio and multlc. * 2SLS estimator with ssiratio and multlc as instruments for hi_empunion. ivregress 2sls ldrugexp (hi_empunion = ssiratio multlc) $x2list, vce(robust) nstrumental variables (2SLS) regression Number of obs = Wald chi2(6) = Prob > chi2 = R-squared = Root MSE = Robust ldrugexp Coef. Std. Err. z P> z [95% Conf. nterval] hi_empunion totchr age female blhisp linc _cons nstrumented: hi_empunion nstruments: totchr age female blhisp linc ssiratio multlc Coe cient changes from (V) to (2SLS). Standard error decreases from (V) to (2SLS). c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program inmarch Economics 21-25, Based on A. 15 Colin / 35 C

16 3. Data Example Optimal GMM Estimates Optimal GMM Two instruments ssiratio and multlc optimal GMM if errors are heteroskedastic and start with E[zu] = 0.. * GMM estimator with ssiratio and multlc as instruments for hi_empunion. ivregress gmm ldrugexp (hi_empunion = ssiratio multlc) $x2list, vce(robust) nstrumental variables (GMM) regression Number of obs = Wald chi2(6) = Prob > chi2 = R-squared = GMM weight matrix: Robust Root MSE = Robust ldrugexp Coef. Std. Err. z P> z [95% Conf. nterval] hi_empunion totchr age female blhisp linc _cons nstrumented: hi_empunion nstruments: totchr age female blhisp linc ssiratio multlc Estimate and standard error for hi_empunion are very similar to 2SLS Little e ciency gain compared to 2SLS. c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program inmarch Economics 21-25, Based on A. 16 Colin / 35 C

17 3. Data Example Estimator comparison Estimator comparison Compare OLS, V, 2SLS (over-identi ed), GMM (over-identi ed). * Compare estimators. quietly regress ldrugexp hi_empunion $x2list, vce(robust). estimates store OLS. quietly ivregress 2sls ldrugexp (hi_empunion = ssiratio multlc) $x2list, vce(robust). estimates store V. quietly ivregress 2sls ldrugexp (hi_empunion = ssiratio) $x2list, vce(robust). estimates store TWOSLS. quietly ivregress gmm ldrugexp (hi_empunion = ssiratio multlc) $x2list, vce(robust). estimates store GMM. estimates table OLS V TWOSLS GMM, b(%9.4f) se(%9.3f) stats(n r2 F) Variable OLS V TWOSLS GMM hi_empunion totchr age female blhisp linc _cons N r F legend: b/se c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program inmarch Economics 21-25, Based on A. 17 Colin / 35 C

18 4. nstrumental variables in practice 4. nstrumental variables methods in practice Do we need to use instruments? Hausman test of endogeneity. s the instrument valid (uncorrelated with the error)? f model is over-identi ed can do over-identifying restrictions test. What if the instrument is weakly correlated with regressor instrumented Lose e ciency f really weak can have nite-sample bias and wrong test size. How many instruments? Need # instruments # endogenous regressors. n theory more is better but too many can have nite-sample bias. c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program inmarch Economics 21-25, Based on A. 18 Colin / 35 C

19 4. nstrumental variables in practice Hausman test of endogeneity Hausman test n general a Hausman test considers two di erent estimators bθ andbθ that have the same plim under H 0 and di erent plim 0 s under H a. H 0 : plim(bθ eθ) = 0 versus H a : plim(bθ eθ) 6= 0. We reject H 0 if the di erence is large, using H = (bθ eθ) 0 (bv[bθ eθ]) 1 (bθ eθ) a χ 2 (q). Tricky bit is estimating V[bθ eθ] = V[bθ]+ V[eθ] 2Cov[bθ, eθ] usual Hausman test implementation assumes one of bθ and eθ is fully e cient under the null. Say eθ: then V[bθ eθ] = V[bθ] V[eθ] such e ciency is not usually the case in practice F e.g. if errors are heteroskedastic then OLS is ine cient instead need to use a robust form of the Hausman test. c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program inmarch Economics 21-25, Based on A. 19 Colin / 35 C

20 4. nstrumental variables in practice Hausman test of endogeneity Hausman test of endogeneity: 2SLS (bθ) versus OLS (bθ) H 0 : plim(bθ 2SLS eθ OLS ) = 0 if exogeneity vs. H a : plim(bθ 2SLS eθ OLS ) 6= 0 if endogeneity Use heteroskedasticity-robust version of Hausman test this is command estat endogenous and not hausman. * Robust version of Hausman test using augmented regression. quietly ivregress 2sls ldrugexp (hi_empunion = ssiratio) $x2list, vce(robust). estat endogenous Tests of endogeneity Ho: variables are exogenous Robust score chi2(1) = (p = ) Robust regression F(1,10081) = (p = ) Reject H 0 as p = Conclude that hi_empunion is endogenous. Need to do V. c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program inmarch Economics 21-25, Based on A. 20 Colin / 35 C

21 4. nstrumental variables in practice Test of instrument validity Test of instrument validity Cannot test validity in a just identi ed model ntuition: Test based on Cov[z i, bu i ] ' 0 requires bu i based on a consistent estimator of β which requires at least just-identi ed model. Test of overidentifying restrictions (for over-identi ed model) Test H 0 : E[zi 0u i ] = 0 by testing if N 1 i zi 0bu i ' 0. Limited test as assumes instruments in just-identi ed model are valid. n Stata command estat overid after command ivregress gmm. Here one over-identifying restriction (2 instruments for 1 endogenous). * Test of overidentifying restrictions following ivregress gmm. quietly ivregress gmm ldrugexp (hi_empunion = ssiratio multlc) $x2list, wmatrix(robust). estat overid Test of overidentifying restriction: Hansen's J chi2(1) = (p = ) Do not reject H 0 as p = 0.31 < Conclude that, assuming the just-identifying restriction is valid, then the over-identifying restriction is also valid. c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program inmarch Economics 21-25, Based on A. 21 Colin / 35 C

22 4. nstrumental variables in practice Weak instruments Weak instruments Weak instrument means that instrument(s) are weakly correlated with endogenous regressor(s), after controlling for exogenous regressors. Then 1. standard errors " greatly as 2SLS much less e cient than OLS. 2. even slight correlation between error and the instrument can lead to 2SLS more inconsistent than OLS. 3. even if instrument(s) are valid so 2SLS is inconsistent, in typical sample sizes usual asymptotic theory can provide a poor approximation e.g. bias. Consequences 1. key coe cient estimate(s) can become statistically insigni cant. 2. even more important to ensure that the instrument is valid. 3. focus of the weak instrument literature. n Stata for 3. use command estat firststage after command ivregress add-on commands condivreg and ivreg2 c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program inmarch Economics 21-25, Based on A. 22 Colin / 35 C

23 5. V Estimator Properties Consistency 5. V estimator properties: consistency Stacking all observations bβ V = Z 0 X 1 Z 0 y. Substitute y = Xβ + u for y yields bβ V = Z 0 X 1 Z 0 [Xβ + u] = β + Z 0 X 1 Z 0 u = β + 1 N Z0 X 1 1 N Z0 u So β b p V! β and βv b is consistent for β if plim N 1 Z0 u = 0 (instruments are valid) and plim N 1 Z0 X 6= 0 (instruments are relevant). c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program inmarch Economics 21-25, Based on A. 23 Colin / 35 C

24 5. V Estimator Properties Asymptotic distribution V estimator: asymptotic distribution nformal derivation: Thus bβ GMM β = (Z 0 X) 1 Z 0 u a (Z 0 X) 1 N [0, V[Z 0 u]] a (Z 0 X) 1 N [0, Z 0 V[ujZ]Z] a (Z 0 X) 1 N [0, Z 0 ΩZ] bβ V a N [β, (Z 0 X) 1 Z 0 ΩZ(X 0 Z) 1 ]; Ω = V[ujZ]. With independent heteroskedastic errors (Stata option vce(robust)) bv[ b β V ] = (Z 0 X) 1 Z 0 bωz(x 0 Z) 1 ; bω = Diag[bu 2 i ]. Note: Cor[Z, X] ) Z 0 X small ) (Z 0 X) 1 large ) b β V is imprecise. c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program inmarch Economics 21-25, Based on A. 24 Colin / 35 C

25 5. V Estimator Properties Asymptotic distribution for GMM Asymptotic Distribution of GMM nformal derivation: Thus bβ GMM = (X 0 ZWZ 0 X) 1 X 0 ZWZ 0 (Xβ + u) bβ GMM β = (X 0 ZWZ 0 X) 1 X 0 ZWZ 0 u a (X 0 ZWZ 0 X) 1 X 0 ZW N [0, V[Z 0 u]] a (X 0 ZWZ 0 X) 1 X 0 ZW N [0, Z 0 V[ujZ]Z] a (X 0 ZWZ 0 X) 1 X 0 ZW N [0, Z 0 ΩZ] a bβ GMM N [β, (X 0 ZWZ 0 X) 1 X 0 ZWZ 0 ΩZWZ 0 X(X 0 ZWZ 0 X) 1 ] Ω = V[ujZ]. Optimal W is a consistent estimate of Ω 1. Then bβ OptGMM a N [β, (X 0 ZΩ 1 Z 0 X) 1 ] c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program inmarch Economics 21-25, Based on A. 25 Colin / 35 C

26 6. Nonlinear GMM 6. Nonlinear GMM estimator: De nition Nests LS, MLE, V, GMM,... The way to view estimation. Population unconditional moment condition E[h(w, θ 0 )] = 0; w = (y, x, z) is all observables. bθ solves the corresponding sample moment condition 1 N N i=1 h(w i, bθ) = 0. just-identi ed case (r = q) can solve for β over-identi ed case (r > q) cannot as r equations in k unknowns. The generalized method of moments (GMM) estimator (for r > q) minimizes the quadratic form in N 1 i h(w i, θ) Q(θ) = N N i=1 h(w i, θ) W N N N i=1 h(w i, θ) = g(θ) 0 W N g(θ) where g(θ) = N i =1 h i (θ) and 1 N N i =1 W N is a symmetric full-rank weighting matrix that does not depend on θ. c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program inmarch Economics 21-25, Based on A. 26 Colin / 35 C

27 6. Nonlinear GMM Properties Nonlinear GMM estimator: Properties bθ GMM is asymptotically normally distributed with V[bθ GMM ] = N(G 0 WG) 1 G 0 WSWG(G 0 WG) 1. where G = lim E h gn (θ) 0 θ i h = lim E 1 N N i=1 i h i (θ) 0 θ S = Var[ p Ng N (θ)] = Var h 1 p N N i=1 h(w i, θ) i. Optimal GMM: W N = bs 1 where bs p! S. Similar issues as for weighted LS in the linear model. Model choice: specify moment conditions for estimation. Estimator choice: specify a weighting function. Statistical inference: use robust standard errors. Most e cient estimator: a particular choice of weighting function. n Stata 11 use the new command gmm. c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program inmarch Economics 21-25, Based on A. 27 Colin / 35 C

28 7. Endogeneity in Nonlinear Models 7. Endogeneity in nonlinear models Example is y i = exp(x 0 i β) + u i and Cov[x i, u i ] 6= 0. Several very di erent methods (and associated models) exist. 1. Nonlinear V (often called nonlinear 2SLS) is nonlinear GMM based on E[z i u i ] = 0 and W = (Z 0 Z) Control function: add estimated rst-stage error bv i as regressor. di ers from 1. in nonlinear models 3. Fully structural approach adds an equation for endogenous regressors and estimates the model Di ers from 1. and 2. in most nonlinear models and is computationally di cult. 4. The following is inconsistent in nonlinear models: get bx i from rst stage regressions and estimate y i = exp(bx i 0 β) + error. The two-stage LS interpretation of 2SLS does not carry over to nonlinear models. c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program inmarch Economics 21-25, Based on A. 28 Colin / 35 C

29 8. Stata commands 8. Stata commands V (just-identi ed) 2SLS (over-identi ed) GMM (over-identi ed) Overidentifying restrictions test Hausman test (if i.i.d. error) Hausman test (if heteroskedastic error) Weak instruments (plus user written commands) Static panel V Dynamic panel V Nonlinear GMM (new in Stata 11) ivregress 2sls ivregress 2sls ivregress gmm xtoverid hausman estat endogenous estat firststage condivreg; ivreg2 xtivreg; xthaustaylor xtabond; xtdpdsys; xtdpd gmm c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program inmarch Economics 21-25, Based on A. 29 Colin / 35 C

30 9. Appendix V ntuition 9. Appendix: nstrumental variables ntuition Simplify to scalar regression of y on single regressor x (no intercept). Linear regression model y = βx + u where u is an error term. n general E[yjx] = βx+ E[ujx]. Standard regression: assume E[ujx] = 0 i.e. regressors uncorrelated with error implies the following path analysis diagram x! y % u where there is no association between x and u. c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program inmarch Economics 21-25, Based on A. 30 Colin / 35 C

31 9. Appendix V ntuition But there may be an association between regressors and errors. Example: regression of earnings (y) on years of schooling (x). The error u embodies all factors other than schooling that determine earnings, such as ability. Suppose a person has high u, due to high (unobserved) ability. This increases earnings, since y = βx + u. But it may also increase x, since schooling is likely to be higher for those with high ability. So high u (1) directly increases y and (2) indirectly increases y via higher x. c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program inmarch Economics 21-25, Based on A. 31 Colin / 35 C

32 9. Appendix V ntuition The path analysis diagram becomes x! y " % u where now there is an association between x and u. Then y = βx + u(x) implies dy dx = β + du dx. OLS is inconsistent for β as it measures dy/dx, not just β. c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program inmarch Economics 21-25, Based on A. 32 Colin / 35 C

33 9. Appendix V ntuition Assume there exists an instrument z that has the properties changes in z do not directly lead to changes in y changes in z are associated with changes in x The path analysis diagram becomes z! x! y " % u Note: z does not directly cause y, though z and y are correlated via indirect path of z being correlated with x which in turn determines y. Formally, z is an instrument for regressor x if (1) z is uncorrelated with the error u ; and (2) z is correlated with the regressor x. c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program inmarch Economics 21-25, Based on A. 33 Colin / 35 C

34 9. Appendix V ntuition Example: a one unit change in the instrument z is associated with 0.2 more years of schooling (x) and $500 increase in annual earnings (y) (due to z " ) x " ) y ".) Then 0.2 years extra schooling is associated with $500 extra earnings. So a one year increase in schooling is associated with a $500/0.2 = $2, 500 increase in earnings. The causal estimate of β is therefore c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program inmarch Economics 21-25, Based on A. 34 Colin / 35 C

35 9. Appendix V ntuition Mathematically we estimated changes dx/dz and dy/dz and calculated the causal estimator as β V = dy/dz dx/dz. dy/dz estimated by OLS of y on z with slope estimate (z 0 z) 1 z 0 y dx/dz estimated by OLS of x on z with slope estimate (z 0 z) 1 z 0 x. The V estimator is bβ V = (z0 z) 1 z 0 y (z 0 z) 1 z 0 x = (z 0 x) 1 z 0 y 1 = N i=1 z i x i N i=1 z i y i. c A. Colin Cameron Univ. of Calif.- Davis (Frontiers BGPE in Econometrics Course: V, 2SLS, Bavarian GMMGraduate Program inmarch Economics 21-25, Based on A. 35 Colin / 35 C

Эконометрика, , 4 модуль Семинар Для Группы Э_Б2015_Э_3 Семинарист О.А.Демидова

Эконометрика, , 4 модуль Семинар Для Группы Э_Б2015_Э_3 Семинарист О.А.Демидова Эконометрика, 2017-2018, 4 модуль Семинар 3 160418 Для Группы Э_Б2015_Э_3 Семинарист ОАДемидова * Stata program * copyright C 2010 by A Colin Cameron and Pravin K Trivedi * used for "Microeconometrics

More information

Day 1A Ordinary Least Squares and GLS

Day 1A Ordinary Least Squares and GLS Day 1A Ordinary Least Squares and GLS c A. Colin Cameron Univ. of Calif.- Davis Frontiers in Econometrics Bavarian Graduate Program in Economics. Based on A. Colin Cameron and Pravin K. Trivedi (2009,2010),

More information

Day 4 Nonlinear methods

Day 4 Nonlinear methods Day 4 Nonlinear methods c A. Colin Cameron Univ. of Calif.- Davis Frontiers in Econometrics Bavarian Graduate Program in Economics. Based on A. Colin Cameron and Pravin K. Trivedi (2009, 2010), Microeconometrics

More information

Day 3B Nonparametrics and Bootstrap

Day 3B Nonparametrics and Bootstrap Day 3B Nonparametrics and Bootstrap c A. Colin Cameron Univ. of Calif.- Davis Frontiers in Econometrics Bavarian Graduate Program in Economics. Based on A. Colin Cameron and Pravin K. Trivedi (2009,2010),

More information

4.8 Instrumental Variables

4.8 Instrumental Variables 4.8. INSTRUMENTAL VARIABLES 35 4.8 Instrumental Variables A major complication that is emphasized in microeconometrics is the possibility of inconsistent parameter estimation due to endogenous regressors.

More information

4 Instrumental Variables Single endogenous variable One continuous instrument. 2

4 Instrumental Variables Single endogenous variable One continuous instrument. 2 Econ 495 - Econometric Review 1 Contents 4 Instrumental Variables 2 4.1 Single endogenous variable One continuous instrument. 2 4.2 Single endogenous variable more than one continuous instrument..........................

More information

4 Instrumental Variables Single endogenous variable One continuous instrument. 2

4 Instrumental Variables Single endogenous variable One continuous instrument. 2 Econ 495 - Econometric Review 1 Contents 4 Instrumental Variables 2 4.1 Single endogenous variable One continuous instrument. 2 4.2 Single endogenous variable more than one continuous instrument..........................

More information

Day 1B Count Data Regression: Part 2

Day 1B Count Data Regression: Part 2 Day 1B Count Data Regression: Part 2 A. Colin Cameron Univ. of Calif. - Davis... for Center of Labor Economics Norwegian School of Economics Advanced Microeconometrics Aug 28 - Sept 1, 2017. Colin Cameron

More information

Warwick Economics Summer School Topics in Microeconometrics Instrumental Variables Estimation

Warwick Economics Summer School Topics in Microeconometrics Instrumental Variables Estimation Warwick Economics Summer School Topics in Microeconometrics Instrumental Variables Estimation Michele Aquaro University of Warwick This version: July 21, 2016 1 / 31 Reading material Textbook: Introductory

More information

GMM Estimation in Stata

GMM Estimation in Stata GMM Estimation in Stata Econometrics I Department of Economics Universidad Carlos III de Madrid Master in Industrial Economics and Markets 1 Outline Motivation 1 Motivation 2 3 4 2 Motivation 3 Stata and

More information

Dynamic Panels. Chapter Introduction Autoregressive Model

Dynamic Panels. Chapter Introduction Autoregressive Model Chapter 11 Dynamic Panels This chapter covers the econometrics methods to estimate dynamic panel data models, and presents examples in Stata to illustrate the use of these procedures. The topics in this

More information

ECON Introductory Econometrics. Lecture 16: Instrumental variables

ECON Introductory Econometrics. Lecture 16: Instrumental variables ECON4150 - Introductory Econometrics Lecture 16: Instrumental variables Monique de Haan (moniqued@econ.uio.no) Stock and Watson Chapter 12 Lecture outline 2 OLS assumptions and when they are violated Instrumental

More information

We begin by thinking about population relationships.

We begin by thinking about population relationships. Conditional Expectation Function (CEF) We begin by thinking about population relationships. CEF Decomposition Theorem: Given some outcome Y i and some covariates X i there is always a decomposition where

More information

Lecture 8: Instrumental Variables Estimation

Lecture 8: Instrumental Variables Estimation Lecture Notes on Advanced Econometrics Lecture 8: Instrumental Variables Estimation Endogenous Variables Consider a population model: y α y + β + β x + β x +... + β x + u i i i i k ik i Takashi Yamano

More information

Econometrics. 8) Instrumental variables

Econometrics. 8) Instrumental variables 30C00200 Econometrics 8) Instrumental variables Timo Kuosmanen Professor, Ph.D. http://nomepre.net/index.php/timokuosmanen Today s topics Thery of IV regression Overidentification Two-stage least squates

More information

11. Bootstrap Methods

11. Bootstrap Methods 11. Bootstrap Methods c A. Colin Cameron & Pravin K. Trivedi 2006 These transparencies were prepared in 20043. They can be used as an adjunct to Chapter 11 of our subsequent book Microeconometrics: Methods

More information

Econometrics Midterm Examination Answers

Econometrics Midterm Examination Answers Econometrics Midterm Examination Answers March 4, 204. Question (35 points) Answer the following short questions. (i) De ne what is an unbiased estimator. Show that X is an unbiased estimator for E(X i

More information

Simultaneous Equations with Error Components. Mike Bronner Marko Ledic Anja Breitwieser

Simultaneous Equations with Error Components. Mike Bronner Marko Ledic Anja Breitwieser Simultaneous Equations with Error Components Mike Bronner Marko Ledic Anja Breitwieser PRESENTATION OUTLINE Part I: - Simultaneous equation models: overview - Empirical example Part II: - Hausman and Taylor

More information

ECONOMETRICS FIELD EXAM Michigan State University May 9, 2008

ECONOMETRICS FIELD EXAM Michigan State University May 9, 2008 ECONOMETRICS FIELD EXAM Michigan State University May 9, 2008 Instructions: Answer all four (4) questions. Point totals for each question are given in parenthesis; there are 00 points possible. Within

More information

Generalized method of moments estimation in Stata 11

Generalized method of moments estimation in Stata 11 Generalized method of moments estimation in Stata 11 David M. Drukker StataCorp Stata Conference Washington, DC 2009 1 / 27 Outline 1 A quick introduction to GMM 2 gmm examples Ordinary least squares Two-stage

More information

Day 4A Nonparametrics

Day 4A Nonparametrics Day 4A Nonparametrics A. Colin Cameron Univ. of Calif. - Davis... for Center of Labor Economics Norwegian School of Economics Advanced Microeconometrics Aug 28 - Sep 2, 2017. Colin Cameron Univ. of Calif.

More information

IV and IV-GMM. Christopher F Baum. EC 823: Applied Econometrics. Boston College, Spring 2014

IV and IV-GMM. Christopher F Baum. EC 823: Applied Econometrics. Boston College, Spring 2014 IV and IV-GMM Christopher F Baum EC 823: Applied Econometrics Boston College, Spring 2014 Christopher F Baum (BC / DIW) IV and IV-GMM Boston College, Spring 2014 1 / 1 Instrumental variables estimators

More information

Instrumental Variables Estimation in Stata

Instrumental Variables Estimation in Stata Christopher F Baum 1 Faculty Micro Resource Center Boston College March 2007 1 Thanks to Austin Nichols for the use of his material on weak instruments and Mark Schaffer for helpful comments. The standard

More information

Regression with a Single Regressor: Hypothesis Tests and Confidence Intervals

Regression with a Single Regressor: Hypothesis Tests and Confidence Intervals Regression with a Single Regressor: Hypothesis Tests and Confidence Intervals (SW Chapter 5) Outline. The standard error of ˆ. Hypothesis tests concerning β 3. Confidence intervals for β 4. Regression

More information

Econometrics II. Lecture 4: Instrumental Variables Part I

Econometrics II. Lecture 4: Instrumental Variables Part I Econometrics II Lecture 4: Instrumental Variables Part I Måns Söderbom 12 April 2011 mans.soderbom@economics.gu.se. www.economics.gu.se/soderbom. www.soderbom.net 1. Introduction Recall from lecture 3

More information

Chapter 2. Dynamic panel data models

Chapter 2. Dynamic panel data models Chapter 2. Dynamic panel data models School of Economics and Management - University of Geneva Christophe Hurlin, Université of Orléans University of Orléans April 2018 C. Hurlin (University of Orléans)

More information

ECON 594: Lecture #6

ECON 594: Lecture #6 ECON 594: Lecture #6 Thomas Lemieux Vancouver School of Economics, UBC May 2018 1 Limited dependent variables: introduction Up to now, we have been implicitly assuming that the dependent variable, y, was

More information

Notes on Generalized Method of Moments Estimation

Notes on Generalized Method of Moments Estimation Notes on Generalized Method of Moments Estimation c Bronwyn H. Hall March 1996 (revised February 1999) 1. Introduction These notes are a non-technical introduction to the method of estimation popularized

More information

Instrumental Variables, Simultaneous and Systems of Equations

Instrumental Variables, Simultaneous and Systems of Equations Chapter 6 Instrumental Variables, Simultaneous and Systems of Equations 61 Instrumental variables In the linear regression model y i = x iβ + ε i (61) we have been assuming that bf x i and ε i are uncorrelated

More information

Econ 836 Final Exam. 2 w N 2 u N 2. 2 v N

Econ 836 Final Exam. 2 w N 2 u N 2. 2 v N 1) [4 points] Let Econ 836 Final Exam Y Xβ+ ε, X w+ u, w N w~ N(, σi ), u N u~ N(, σi ), ε N ε~ Nu ( γσ, I ), where X is a just one column. Let denote the OLS estimator, and define residuals e as e Y X.

More information

Instrumental Variables and GMM: Estimation and Testing. Steven Stillman, New Zealand Department of Labour

Instrumental Variables and GMM: Estimation and Testing. Steven Stillman, New Zealand Department of Labour Instrumental Variables and GMM: Estimation and Testing Christopher F Baum, Boston College Mark E. Schaffer, Heriot Watt University Steven Stillman, New Zealand Department of Labour March 2003 Stata Journal,

More information

Measurement Error. Often a data set will contain imperfect measures of the data we would ideally like.

Measurement Error. Often a data set will contain imperfect measures of the data we would ideally like. Measurement Error Often a data set will contain imperfect measures of the data we would ideally like. Aggregate Data: (GDP, Consumption, Investment are only best guesses of theoretical counterparts and

More information

ADVANCED ECONOMETRICS I. Course Description. Contents - Theory 18/10/2017. Theory (1/3)

ADVANCED ECONOMETRICS I. Course Description. Contents - Theory 18/10/2017. Theory (1/3) ADVANCED ECONOMETRICS I Theory (1/3) Instructor: Joaquim J. S. Ramalho E.mail: jjsro@iscte-iul.pt Personal Website: http://home.iscte-iul.pt/~jjsro Office: D5.10 Course Website: http://home.iscte-iul.pt/~jjsro/advancedeconometricsi.htm

More information

Panel Data. March 2, () Applied Economoetrics: Topic 6 March 2, / 43

Panel Data. March 2, () Applied Economoetrics: Topic 6 March 2, / 43 Panel Data March 2, 212 () Applied Economoetrics: Topic March 2, 212 1 / 43 Overview Many economic applications involve panel data. Panel data has both cross-sectional and time series aspects. Regression

More information

1 Outline. Introduction: Econometricians assume data is from a simple random survey. This is never the case.

1 Outline. Introduction: Econometricians assume data is from a simple random survey. This is never the case. 24. Strati cation c A. Colin Cameron & Pravin K. Trivedi 2006 These transparencies were prepared in 2002. They can be used as an adjunct to Chapter 24 (sections 24.2-24.4 only) of our subsequent book Microeconometrics:

More information

Economics 241B Estimation with Instruments

Economics 241B Estimation with Instruments Economics 241B Estimation with Instruments Measurement Error Measurement error is de ned as the error resulting from the measurement of a variable. At some level, every variable is measured with error.

More information

x i = 1 yi 2 = 55 with N = 30. Use the above sample information to answer all the following questions. Show explicitly all formulas and calculations.

x i = 1 yi 2 = 55 with N = 30. Use the above sample information to answer all the following questions. Show explicitly all formulas and calculations. Exercises for the course of Econometrics Introduction 1. () A researcher is using data for a sample of 30 observations to investigate the relationship between some dependent variable y i and independent

More information

Handout 11: Measurement Error

Handout 11: Measurement Error Handout 11: Measurement Error In which you learn to recognise the consequences for OLS estimation whenever some of the variables you use are not measured as accurately as you might expect. A (potential)

More information

Environmental Econometrics

Environmental Econometrics Environmental Econometrics Syngjoo Choi Fall 2008 Environmental Econometrics (GR03) Fall 2008 1 / 37 Syllabus I This is an introductory econometrics course which assumes no prior knowledge on econometrics;

More information

Lecture: Simultaneous Equation Model (Wooldridge s Book Chapter 16)

Lecture: Simultaneous Equation Model (Wooldridge s Book Chapter 16) Lecture: Simultaneous Equation Model (Wooldridge s Book Chapter 16) 1 2 Model Consider a system of two regressions y 1 = β 1 y 2 + u 1 (1) y 2 = β 2 y 1 + u 2 (2) This is a simultaneous equation model

More information

Chapter 6: Endogeneity and Instrumental Variables (IV) estimator

Chapter 6: Endogeneity and Instrumental Variables (IV) estimator Chapter 6: Endogeneity and Instrumental Variables (IV) estimator Advanced Econometrics - HEC Lausanne Christophe Hurlin University of Orléans December 15, 2013 Christophe Hurlin (University of Orléans)

More information

1 Motivation for Instrumental Variable (IV) Regression

1 Motivation for Instrumental Variable (IV) Regression ECON 370: IV & 2SLS 1 Instrumental Variables Estimation and Two Stage Least Squares Econometric Methods, ECON 370 Let s get back to the thiking in terms of cross sectional (or pooled cross sectional) data

More information

Econometrics. Week 8. Fall Institute of Economic Studies Faculty of Social Sciences Charles University in Prague

Econometrics. Week 8. Fall Institute of Economic Studies Faculty of Social Sciences Charles University in Prague Econometrics Week 8 Institute of Economic Studies Faculty of Social Sciences Charles University in Prague Fall 2012 1 / 25 Recommended Reading For the today Instrumental Variables Estimation and Two Stage

More information

Instrumental variables estimation using heteroskedasticity-based instruments

Instrumental variables estimation using heteroskedasticity-based instruments Instrumental variables estimation using heteroskedasticity-based instruments Christopher F Baum, Arthur Lewbel, Mark E Schaffer, Oleksandr Talavera Boston College/DIW Berlin, Boston College, Heriot Watt

More information

ESTIMATING AVERAGE TREATMENT EFFECTS: REGRESSION DISCONTINUITY DESIGNS Jeff Wooldridge Michigan State University BGSE/IZA Course in Microeconometrics

ESTIMATING AVERAGE TREATMENT EFFECTS: REGRESSION DISCONTINUITY DESIGNS Jeff Wooldridge Michigan State University BGSE/IZA Course in Microeconometrics ESTIMATING AVERAGE TREATMENT EFFECTS: REGRESSION DISCONTINUITY DESIGNS Jeff Wooldridge Michigan State University BGSE/IZA Course in Microeconometrics July 2009 1. Introduction 2. The Sharp RD Design 3.

More information

Repeated observations on the same cross-section of individual units. Important advantages relative to pure cross-section data

Repeated observations on the same cross-section of individual units. Important advantages relative to pure cross-section data Panel data Repeated observations on the same cross-section of individual units. Important advantages relative to pure cross-section data - possible to control for some unobserved heterogeneity - possible

More information

ECON Introductory Econometrics. Lecture 5: OLS with One Regressor: Hypothesis Tests

ECON Introductory Econometrics. Lecture 5: OLS with One Regressor: Hypothesis Tests ECON4150 - Introductory Econometrics Lecture 5: OLS with One Regressor: Hypothesis Tests Monique de Haan (moniqued@econ.uio.no) Stock and Watson Chapter 5 Lecture outline 2 Testing Hypotheses about one

More information

Maria Elena Bontempi Roberto Golinelli this version: 5 September 2007

Maria Elena Bontempi Roberto Golinelli this version: 5 September 2007 INSTRUMENTAL VARIABLES (IV) ESTIMATION A Maria Elena Bontempi e.bontempi@economia.unife.it Roberto Golinelli roberto.golinelli@unibo.it this version: 5 September 2007 1. The instrumental variables approach

More information

Econometrics Homework 1

Econometrics Homework 1 Econometrics Homework Due Date: March, 24. by This problem set includes questions for Lecture -4 covered before midterm exam. Question Let z be a random column vector of size 3 : z = @ (a) Write out z

More information

Recent Advances in the Field of Trade Theory and Policy Analysis Using Micro-Level Data

Recent Advances in the Field of Trade Theory and Policy Analysis Using Micro-Level Data Recent Advances in the Field of Trade Theory and Policy Analysis Using Micro-Level Data July 2012 Bangkok, Thailand Cosimo Beverelli (World Trade Organization) 1 Content a) Classical regression model b)

More information

Lecture#12. Instrumental variables regression Causal parameters III

Lecture#12. Instrumental variables regression Causal parameters III Lecture#12 Instrumental variables regression Causal parameters III 1 Demand experiment, market data analysis & simultaneous causality 2 Simultaneous causality Your task is to estimate the demand function

More information

Instrumental variables estimation using heteroskedasticity-based instruments

Instrumental variables estimation using heteroskedasticity-based instruments Instrumental variables estimation using heteroskedasticity-based instruments Christopher F Baum, Arthur Lewbel, Mark E Schaffer, Oleksandr Talavera Boston College/DIW Berlin, Boston College, Heriot Watt

More information

Chapter 6. Panel Data. Joan Llull. Quantitative Statistical Methods II Barcelona GSE

Chapter 6. Panel Data. Joan Llull. Quantitative Statistical Methods II Barcelona GSE Chapter 6. Panel Data Joan Llull Quantitative Statistical Methods II Barcelona GSE Introduction Chapter 6. Panel Data 2 Panel data The term panel data refers to data sets with repeated observations over

More information

Handout 12. Endogeneity & Simultaneous Equation Models

Handout 12. Endogeneity & Simultaneous Equation Models Handout 12. Endogeneity & Simultaneous Equation Models In which you learn about another potential source of endogeneity caused by the simultaneous determination of economic variables, and learn how to

More information

Least Squares Estimation-Finite-Sample Properties

Least Squares Estimation-Finite-Sample Properties Least Squares Estimation-Finite-Sample Properties Ping Yu School of Economics and Finance The University of Hong Kong Ping Yu (HKU) Finite-Sample 1 / 29 Terminology and Assumptions 1 Terminology and Assumptions

More information

Chapter 1. GMM: Basic Concepts

Chapter 1. GMM: Basic Concepts Chapter 1. GMM: Basic Concepts Contents 1 Motivating Examples 1 1.1 Instrumental variable estimator....................... 1 1.2 Estimating parameters in monetary policy rules.............. 2 1.3 Estimating

More information

Wooldridge, Introductory Econometrics, 4th ed. Chapter 15: Instrumental variables and two stage least squares

Wooldridge, Introductory Econometrics, 4th ed. Chapter 15: Instrumental variables and two stage least squares Wooldridge, Introductory Econometrics, 4th ed. Chapter 15: Instrumental variables and two stage least squares Many economic models involve endogeneity: that is, a theoretical relationship does not fit

More information

xtdpdqml: Quasi-maximum likelihood estimation of linear dynamic short-t panel data models

xtdpdqml: Quasi-maximum likelihood estimation of linear dynamic short-t panel data models xtdpdqml: Quasi-maximum likelihood estimation of linear dynamic short-t panel data models Sebastian Kripfganz University of Exeter Business School, Department of Economics, Exeter, UK UK Stata Users Group

More information

Quantitative Methods Final Exam (2017/1)

Quantitative Methods Final Exam (2017/1) Quantitative Methods Final Exam (2017/1) 1. Please write down your name and student ID number. 2. Calculator is allowed during the exam, but DO NOT use a smartphone. 3. List your answers (together with

More information

ECONOMETRICS II (ECO 2401S) University of Toronto. Department of Economics. Spring 2013 Instructor: Victor Aguirregabiria

ECONOMETRICS II (ECO 2401S) University of Toronto. Department of Economics. Spring 2013 Instructor: Victor Aguirregabiria ECONOMETRICS II (ECO 2401S) University of Toronto. Department of Economics. Spring 2013 Instructor: Victor Aguirregabiria SOLUTION TO FINAL EXAM Friday, April 12, 2013. From 9:00-12:00 (3 hours) INSTRUCTIONS:

More information

An explanation of Two Stage Least Squares

An explanation of Two Stage Least Squares Introduction Introduction to Econometrics An explanation of Two Stage Least Squares When we get an endogenous variable we know that OLS estimator will be inconsistent. In addition OLS regressors will also

More information

Practice 2SLS with Artificial Data Part 1

Practice 2SLS with Artificial Data Part 1 Practice 2SLS with Artificial Data Part 1 Yona Rubinstein July 2016 Yona Rubinstein (LSE) Practice 2SLS with Artificial Data Part 1 07/16 1 / 16 Practice with Artificial Data In this note we use artificial

More information

INTRODUCTION TO BASIC LINEAR REGRESSION MODEL

INTRODUCTION TO BASIC LINEAR REGRESSION MODEL INTRODUCTION TO BASIC LINEAR REGRESSION MODEL 13 September 2011 Yogyakarta, Indonesia Cosimo Beverelli (World Trade Organization) 1 LINEAR REGRESSION MODEL In general, regression models estimate the effect

More information

ECON Introductory Econometrics. Lecture 13: Internal and external validity

ECON Introductory Econometrics. Lecture 13: Internal and external validity ECON4150 - Introductory Econometrics Lecture 13: Internal and external validity Monique de Haan (moniqued@econ.uio.no) Stock and Watson Chapter 9 Lecture outline 2 Definitions of internal and external

More information

Lecture 4: Linear panel models

Lecture 4: Linear panel models Lecture 4: Linear panel models Luc Behaghel PSE February 2009 Luc Behaghel (PSE) Lecture 4 February 2009 1 / 47 Introduction Panel = repeated observations of the same individuals (e.g., rms, workers, countries)

More information

IV Estimation and its Limitations: Weak Instruments and Weakly Endogeneous Regressors

IV Estimation and its Limitations: Weak Instruments and Weakly Endogeneous Regressors IV Estimation and its Limitations: Weak Instruments and Weakly Endogeneous Regressors Laura Mayoral IAE, Barcelona GSE and University of Gothenburg Gothenburg, May 2015 Roadmap of the course Introduction.

More information

ECON Introductory Econometrics. Lecture 6: OLS with Multiple Regressors

ECON Introductory Econometrics. Lecture 6: OLS with Multiple Regressors ECON4150 - Introductory Econometrics Lecture 6: OLS with Multiple Regressors Monique de Haan (moniqued@econ.uio.no) Stock and Watson Chapter 6 Lecture outline 2 Violation of first Least Squares assumption

More information

Essential of Simple regression

Essential of Simple regression Essential of Simple regression We use simple regression when we are interested in the relationship between two variables (e.g., x is class size, and y is student s GPA). For simplicity we assume the relationship

More information

Graduate Econometrics Lecture 4: Heteroskedasticity

Graduate Econometrics Lecture 4: Heteroskedasticity Graduate Econometrics Lecture 4: Heteroskedasticity Department of Economics University of Gothenburg November 30, 2014 1/43 and Autocorrelation Consequences for OLS Estimator Begin from the linear model

More information

The Case Against JIVE

The Case Against JIVE The Case Against JIVE Related literature, Two comments and One reply PhD. student Freddy Rojas Cama Econometrics Theory II Rutgers University November 14th, 2011 Literature 1 Literature 2 Key de nitions

More information

Day 1A Count Data Regression: Part 1

Day 1A Count Data Regression: Part 1 Day 1A Count Data Regression: Part 1 A. Colin Cameron Univ. of Calif. - Davis... for Center of Labor Economics Norwegian School of Economics Advanced Microeconometrics Aug 28 - Sept 1, 2017. Colin Cameron

More information

Bootstrap-Based Improvements for Inference with Clustered Errors

Bootstrap-Based Improvements for Inference with Clustered Errors Bootstrap-Based Improvements for Inference with Clustered Errors Colin Cameron, Jonah Gelbach, Doug Miller U.C. - Davis, U. Maryland, U.C. - Davis May, 2008 May, 2008 1 / 41 1. Introduction OLS regression

More information

Lecture 8 Panel Data

Lecture 8 Panel Data Lecture 8 Panel Data Economics 8379 George Washington University Instructor: Prof. Ben Williams Introduction This lecture will discuss some common panel data methods and problems. Random effects vs. fixed

More information

Applied Econometrics. Lecture 3: Introduction to Linear Panel Data Models

Applied Econometrics. Lecture 3: Introduction to Linear Panel Data Models Applied Econometrics Lecture 3: Introduction to Linear Panel Data Models Måns Söderbom 4 September 2009 Department of Economics, Universy of Gothenburg. Email: mans.soderbom@economics.gu.se. Web: www.economics.gu.se/soderbom,

More information

Recent Advances in the Field of Trade Theory and Policy Analysis Using Micro-Level Data

Recent Advances in the Field of Trade Theory and Policy Analysis Using Micro-Level Data Recent Advances in the Field of Trade Theory and Policy Analysis Using Micro-Level Data July 2012 Bangkok, Thailand Cosimo Beverelli (World Trade Organization) 1 Content a) Endogeneity b) Instrumental

More information

GMM-based inference in the AR(1) panel data model for parameter values where local identi cation fails

GMM-based inference in the AR(1) panel data model for parameter values where local identi cation fails GMM-based inference in the AR() panel data model for parameter values where local identi cation fails Edith Madsen entre for Applied Microeconometrics (AM) Department of Economics, University of openhagen,

More information

Day 2B Inference for Clustered Data: Part 2 With a Cross-section Data Example (Revised August 25 to add 14. Dyadic Clustering)

Day 2B Inference for Clustered Data: Part 2 With a Cross-section Data Example (Revised August 25 to add 14. Dyadic Clustering) Day 2B nference for Clustered Data: Part 2 With a Cross-section Data Example (Revised August 25 to add 14. Dyadic Clustering) A. Colin Cameron Univ. of Calif. - Davis... for Center of Labor Economics Norwegian

More information

Lecture 14. More on using dummy variables (deal with seasonality)

Lecture 14. More on using dummy variables (deal with seasonality) Lecture 14. More on using dummy variables (deal with seasonality) More things to worry about: measurement error in variables (can lead to bias in OLS (endogeneity) ) Have seen that dummy variables are

More information

Strength and weakness of instruments in IV and GMM estimation of dynamic panel data models

Strength and weakness of instruments in IV and GMM estimation of dynamic panel data models Strength and weakness of instruments in IV and GMM estimation of dynamic panel data models Jan F. Kiviet (University of Amsterdam & Tinbergen Institute) preliminary version: January 2009 JEL-code: C3;

More information

Microeconometrics (PhD) Problem set 2: Dynamic Panel Data Solutions

Microeconometrics (PhD) Problem set 2: Dynamic Panel Data Solutions Microeconometrics (PhD) Problem set 2: Dynamic Panel Data Solutions QUESTION 1 Data for this exercise can be prepared by running the do-file called preparedo posted on my webpage This do-file collects

More information

ECONOMETRICS II (ECO 2401) Victor Aguirregabiria. Spring 2018 TOPIC 4: INTRODUCTION TO THE EVALUATION OF TREATMENT EFFECTS

ECONOMETRICS II (ECO 2401) Victor Aguirregabiria. Spring 2018 TOPIC 4: INTRODUCTION TO THE EVALUATION OF TREATMENT EFFECTS ECONOMETRICS II (ECO 2401) Victor Aguirregabiria Spring 2018 TOPIC 4: INTRODUCTION TO THE EVALUATION OF TREATMENT EFFECTS 1. Introduction and Notation 2. Randomized treatment 3. Conditional independence

More information

ECONOMICS AND ECONOMIC METHODS PRELIM EXAM Statistics and Econometrics August 2013

ECONOMICS AND ECONOMIC METHODS PRELIM EXAM Statistics and Econometrics August 2013 ECONOMICS AND ECONOMIC METHODS PRELIM EXAM Statistics and Econometrics August 2013 Instructions: Answer all six (6) questions. Point totals for each question are given in parentheses. The parts within

More information

Testing Linear Restrictions: cont.

Testing Linear Restrictions: cont. Testing Linear Restrictions: cont. The F-statistic is closely connected with the R of the regression. In fact, if we are testing q linear restriction, can write the F-stastic as F = (R u R r)=q ( R u)=(n

More information

1: a b c d e 2: a b c d e 3: a b c d e 4: a b c d e 5: a b c d e. 6: a b c d e 7: a b c d e 8: a b c d e 9: a b c d e 10: a b c d e

1: a b c d e 2: a b c d e 3: a b c d e 4: a b c d e 5: a b c d e. 6: a b c d e 7: a b c d e 8: a b c d e 9: a b c d e 10: a b c d e Economics 102: Analysis of Economic Data Cameron Spring 2015 Department of Economics, U.C.-Davis Final Exam (A) Saturday June 6 Compulsory. Closed book. Total of 56 points and worth 45% of course grade.

More information

PANEL DATA RANDOM AND FIXED EFFECTS MODEL. Professor Menelaos Karanasos. December Panel Data (Institute) PANEL DATA December / 1

PANEL DATA RANDOM AND FIXED EFFECTS MODEL. Professor Menelaos Karanasos. December Panel Data (Institute) PANEL DATA December / 1 PANEL DATA RANDOM AND FIXED EFFECTS MODEL Professor Menelaos Karanasos December 2011 PANEL DATA Notation y it is the value of the dependent variable for cross-section unit i at time t where i = 1,...,

More information

Applied Statistics and Econometrics

Applied Statistics and Econometrics Applied Statistics and Econometrics Lecture 5 Saul Lach September 2017 Saul Lach () Applied Statistics and Econometrics September 2017 1 / 44 Outline of Lecture 5 Now that we know the sampling distribution

More information

Instrumental variables: Overview and advances

Instrumental variables: Overview and advances Instrumental variables: Overview and advances Christopher F Baum 1 Boston College and DIW Berlin UKSUG 13, London, September 2007 1 Thanks to Austin Nichols for the use of his NASUG talks and Mark Schaffer

More information

Econometrics. 9) Heteroscedasticity and autocorrelation

Econometrics. 9) Heteroscedasticity and autocorrelation 30C00200 Econometrics 9) Heteroscedasticity and autocorrelation Timo Kuosmanen Professor, Ph.D. http://nomepre.net/index.php/timokuosmanen Today s topics Heteroscedasticity Possible causes Testing for

More information

Applied Statistics and Econometrics

Applied Statistics and Econometrics Applied Statistics and Econometrics Lecture 6 Saul Lach September 2017 Saul Lach () Applied Statistics and Econometrics September 2017 1 / 53 Outline of Lecture 6 1 Omitted variable bias (SW 6.1) 2 Multiple

More information

David M. Drukker Italian Stata Users Group meeting 15 November Executive Director of Econometrics Stata

David M. Drukker Italian Stata Users Group meeting 15 November Executive Director of Econometrics Stata Estimating the ATE of an endogenously assigned treatment from a sample with endogenous selection by regression adjustment using an extended regression models David M. Drukker Executive Director of Econometrics

More information

A Course on Advanced Econometrics

A Course on Advanced Econometrics A Course on Advanced Econometrics Yongmiao Hong The Ernest S. Liu Professor of Economics & International Studies Cornell University Course Introduction: Modern economies are full of uncertainties and risk.

More information

Lab 11 - Heteroskedasticity

Lab 11 - Heteroskedasticity Lab 11 - Heteroskedasticity Spring 2017 Contents 1 Introduction 2 2 Heteroskedasticity 2 3 Addressing heteroskedasticity in Stata 3 4 Testing for heteroskedasticity 4 5 A simple example 5 1 1 Introduction

More information

The Regression Tool. Yona Rubinstein. July Yona Rubinstein (LSE) The Regression Tool 07/16 1 / 35

The Regression Tool. Yona Rubinstein. July Yona Rubinstein (LSE) The Regression Tool 07/16 1 / 35 The Regression Tool Yona Rubinstein July 2016 Yona Rubinstein (LSE) The Regression Tool 07/16 1 / 35 Regressions Regression analysis is one of the most commonly used statistical techniques in social and

More information

xtseqreg: Sequential (two-stage) estimation of linear panel data models

xtseqreg: Sequential (two-stage) estimation of linear panel data models xtseqreg: Sequential (two-stage) estimation of linear panel data models and some pitfalls in the estimation of dynamic panel models Sebastian Kripfganz University of Exeter Business School, Department

More information

Instrumental Variables and the Problem of Endogeneity

Instrumental Variables and the Problem of Endogeneity Instrumental Variables and the Problem of Endogeneity September 15, 2015 1 / 38 Exogeneity: Important Assumption of OLS In a standard OLS framework, y = xβ + ɛ (1) and for unbiasedness we need E[x ɛ] =

More information

1 The Multiple Regression Model: Freeing Up the Classical Assumptions

1 The Multiple Regression Model: Freeing Up the Classical Assumptions 1 The Multiple Regression Model: Freeing Up the Classical Assumptions Some or all of classical assumptions were crucial for many of the derivations of the previous chapters. Derivation of the OLS estimator

More information

Final Exam. Economics 835: Econometrics. Fall 2010

Final Exam. Economics 835: Econometrics. Fall 2010 Final Exam Economics 835: Econometrics Fall 2010 Please answer the question I ask - no more and no less - and remember that the correct answer is often short and simple. 1 Some short questions a) For each

More information

Generalized Method of Moments (GMM) Estimation

Generalized Method of Moments (GMM) Estimation Econometrics 2 Fall 2004 Generalized Method of Moments (GMM) Estimation Heino Bohn Nielsen of29 Outline of the Lecture () Introduction. (2) Moment conditions and methods of moments (MM) estimation. Ordinary

More information

Binary Dependent Variables

Binary Dependent Variables Binary Dependent Variables In some cases the outcome of interest rather than one of the right hand side variables - is discrete rather than continuous Binary Dependent Variables In some cases the outcome

More information

Longitudinal Data Analysis Using Stata Paul D. Allison, Ph.D. Upcoming Seminar: May 18-19, 2017, Chicago, Illinois

Longitudinal Data Analysis Using Stata Paul D. Allison, Ph.D. Upcoming Seminar: May 18-19, 2017, Chicago, Illinois Longitudinal Data Analysis Using Stata Paul D. Allison, Ph.D. Upcoming Seminar: May 18-19, 217, Chicago, Illinois Outline 1. Opportunities and challenges of panel data. a. Data requirements b. Control

More information