Dynamic Panel Data estimators
Christopher F Baum
ECON 8823: Applied Econometrics
Boston College, Spring 2015
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 1 / 50
Dynamic Panel Data estimators Christopher F Baum ECON 8823: Applied - - PowerPoint PPT Presentation
Dynamic Panel Data estimators Christopher F Baum ECON 8823: Applied Econometrics Boston College, Spring 2015 Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 1 / 50 Dynamic panel data estimators
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 1 / 50
Dynamic panel data estimators
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 2 / 50
Dynamic panel data estimators Nickell bias
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 3 / 50
Dynamic panel data estimators Nickell bias
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 4 / 50
Dynamic panel data estimators Nickell bias
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 5 / 50
Dynamic panel data estimators Nickell bias
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 6 / 50
Dynamic panel data estimators Nickell bias
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 7 / 50
Dynamic panel data estimators The DPD approach
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 8 / 50
Dynamic panel data estimators Arellano–Bond estimator
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 9 / 50
Dynamic panel data estimators Arellano–Bond estimator
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 10 / 50
Dynamic panel data estimators Arellano–Bond estimator
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 11 / 50
Dynamic panel data estimators Constructing the instrument matrix
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 12 / 50
Dynamic panel data estimators Constructing the instrument matrix
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 13 / 50
Dynamic panel data estimators Constructing the instrument matrix
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 14 / 50
Dynamic panel data estimators Constructing the instrument matrix
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 15 / 50
Dynamic panel data estimators Constructing the instrument matrix
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 16 / 50
Dynamic panel data estimators Constructing the instrument matrix
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 17 / 50
Dynamic panel data estimators The System GMM estimator
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 18 / 50
Dynamic panel data estimators Diagnostic tests
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 19 / 50
Dynamic panel data estimators Diagnostic tests
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 20 / 50
Dynamic panel data estimators An empirical exercise
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 21 / 50
Dynamic panel data estimators An empirical exercise
regress n nL1 nL2 w wL1 k kL1 kL2 ys ysL1 ysL2 yr*, cluster(id)
xtreg n nL1 nL2 w wL1 k kL1 kL2 ys ysL1 ysL2 yr*, fe cluster(id)
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 22 / 50
Dynamic panel data estimators An empirical exercise
∗ p < 0.05, ∗∗ p < 0.01, ∗∗∗ p < 0.001 Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 23 / 50
Dynamic panel data estimators An empirical exercise
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 24 / 50
Dynamic panel data estimators An empirical exercise
ivregress 2sls D.n (D.nL1 = nL2) D.(nL2 w wL1 k kL1 kL2 /// ys ysL1 ysL2 yr1979 yr1980 yr1981 yr1982 yr1983 )
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 25 / 50
Dynamic panel data estimators An empirical exercise
∗ p < 0.05, ∗∗ p < 0.01, ∗∗∗ p < 0.001
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 26 / 50
Dynamic panel data estimators An empirical exercise
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 27 / 50
Dynamic panel data estimators An empirical exercise
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 28 / 50
Dynamic panel data estimators An empirical exercise
xtabond2 n L(1/2).n L(0/1).w L(0/2).(k ys) yr*, gmm(L.n) /// iv(L(0/1).w L(0/2).(k ys) yr*) nolevel robust small
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 29 / 50
Dynamic panel data estimators An empirical exercise
∗ p < 0.05, ∗∗ p < 0.01, ∗∗∗ p < 0.001
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 30 / 50
Dynamic panel data estimators An empirical exercise
∗ p < 0.05, ∗∗ p < 0.01, ∗∗∗ p < 0.001 Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 31 / 50
Dynamic panel data estimators An empirical exercise
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 32 / 50
Dynamic panel data estimators An empirical exercise
∗ p < 0.05, ∗∗ p < 0.01, ∗∗∗ p < 0.001
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 33 / 50
Dynamic panel data estimators An empirical exercise
xtabond2 n L(1/2).n L(0/1).w L(0/2).(k ys) yr*, gmm(L.(n w k)) /// iv(L(0/2).ys yr*) nolevel robust small
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 34 / 50
Dynamic panel data estimators An empirical exercise
∗ p < 0.05, ∗∗ p < 0.01, ∗∗∗ p < 0.001
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 35 / 50
Dynamic panel data estimators Illustration of system GMM
xtabond2 n L.n L(0/1).(w k) yr*, gmm(L.(n w k)) iv(yr*, equation(level)) /// robust small
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 36 / 50
Dynamic panel data estimators Illustration of system GMM
∗ p < 0.05, ∗∗ p < 0.01, ∗∗∗ p < 0.001
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 37 / 50
Dynamic panel data estimators A second empirical exercise
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 38 / 50
Dynamic panel data estimators A second empirical exercise
. xi i.year i.year _Iyear_1991-2007 (naturally coded; _Iyear_1991 omitted) . xtabond2 kc L.kc cgnp _I*, gmm(L.kc openc cgnp, lag(2 9)) iv(_I*) /// > twostep robust noleveleq nodiffsargan Favoring speed over space. To switch, type or click on mata: mata set matafavor > space, perm. Dynamic panel-data estimation, two-step difference GMM Group variable: iso Number of obs = 1485 Time variable : year Number of groups = 99 Number of instruments = 283 Obs per group: min = 15 Wald chi2(17) = 94.96 avg = 15.00 Prob > chi2 = 0.000 max = 15 Corrected kc Coef.
z P>|z| [95% Conf. Interval] kc L1. .6478636 .1041122 6.22 0.000 .4438075 .8519197 cgnp .233404 .1080771 2.16 0.031 .0215768 .4452312 ...
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 39 / 50
Dynamic panel data estimators A second empirical exercise
Instruments for first differences equation Standard D.(_Iyear_1992 _Iyear_1993 _Iyear_1994 _Iyear_1995 _Iyear_1996 _Iyear_1997 _Iyear_1998 _Iyear_1999 _Iyear_2000 _Iyear_2001 _Iyear_2002 _Iyear_2003 _Iyear_2004 _Iyear_2005 _Iyear_2006 _Iyear_2007) GMM-type (missing=0, separate instruments for each period unless collapsed) L(2/9).(L.kc openc cgnp) Arellano-Bond test for AR(1) in first differences: z =
Pr > z = 0.003 Arellano-Bond test for AR(2) in first differences: z = 0.23 Pr > z = 0.815 Sargan test of overid. restrictions: chi2(266) = 465.53 Prob > chi2 = 0.000 (Not robust, but not weakened by many instruments.) Hansen test of overid. restrictions: chi2(266) = 87.81 Prob > chi2 = 1.000 (Robust, but can be weakened by many instruments.)
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 40 / 50
Dynamic panel data estimators A second empirical exercise
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 41 / 50
Dynamic panel data estimators A second empirical exercise
. xtabond2 kc L.kc cgnp _I*, gmm(L.kc cgnp, lag(2 8)) iv(_I* L.openc) /// > twostep robust nodiffsargan Dynamic panel-data estimation, two-step system GMM Group variable: iso Number of obs = 1584 Time variable : year Number of groups = 99 Number of instruments = 207 Obs per group: min = 16 Wald chi2(17) = 8193.54 avg = 16.00 Prob > chi2 = 0.000 max = 16 Corrected kc Coef.
z P>|z| [95% Conf. Interval] kc L1. .9452696 .0191167 49.45 0.000 .9078014 .9827377 cgnp .097109 .0436338 2.23 0.026 .0115882 .1826297 ... _cons
3.45096
0.078
.672083
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 42 / 50
Dynamic panel data estimators A second empirical exercise
Instruments for first differences equation Standard D.(_Iyear_1992 _Iyear_1993 _Iyear_1994 _Iyear_1995 _Iyear_1996 _Iyear_1997 _Iyear_1998 _Iyear_1999 _Iyear_2000 _Iyear_2001 _Iyear_2002 _Iyear_2003 _Iyear_2004 _Iyear_2005 _Iyear_2006 _Iyear_2007 L.openc) GMM-type (missing=0, separate instruments for each period unless collapsed) L(2/8).(L.kc cgnp) Instruments for levels equation Standard _cons _Iyear_1992 _Iyear_1993 _Iyear_1994 _Iyear_1995 _Iyear_1996 _Iyear_1997 _Iyear_1998 _Iyear_1999 _Iyear_2000 _Iyear_2001 _Iyear_2002 _Iyear_2003 _Iyear_2004 _Iyear_2005 _Iyear_2006 _Iyear_2007 L.openc GMM-type (missing=0, separate instruments for each period unless collapsed) DL.(L.kc cgnp) Arellano-Bond test for AR(1) in first differences: z =
Pr > z = 0.001 Arellano-Bond test for AR(2) in first differences: z = 0.42 Pr > z = 0.677 Sargan test of overid. restrictions: chi2(189) = 353.99 Prob > chi2 = 0.000 (Not robust, but not weakened by many instruments.) Hansen test of overid. restrictions: chi2(189) = 88.59 Prob > chi2 = 1.000 (Robust, but can be weakened by many instruments.)
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 43 / 50
Dynamic panel data estimators A second empirical exercise
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 44 / 50
Dynamic panel data estimators A second empirical exercise
. xtabond2 kc L.kc cgnp _I*, gmm(L.kc cgnp, lag(2 8)) iv(_I* L.openc) /// > twostep robust nodiffsargan orthog Dynamic panel-data estimation, two-step system GMM Group variable: iso Number of obs = 1584 Time variable : year Number of groups = 99 Number of instruments = 207 Obs per group: min = 16 Wald chi2(17) = 8904.24 avg = 16.00 Prob > chi2 = 0.000 max = 16 Corrected kc Coef.
z P>|z| [95% Conf. Interval] kc L1. .9550247 .0142928 66.82 0.000 .9270114 .983038 cgnp .0723786 .0339312 2.13 0.033 .0058746 .1388825 ... _cons
2.947738
0.142
1.447515
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 45 / 50
Dynamic panel data estimators A second empirical exercise
Instruments for orthogonal deviations equation Standard FOD.(_Iyear_1992 _Iyear_1993 _Iyear_1994 _Iyear_1995 _Iyear_1996 _Iyear_1997 _Iyear_1998 _Iyear_1999 _Iyear_2000 _Iyear_2001 _Iyear_2002 _Iyear_2003 _Iyear_2004 _Iyear_2005 _Iyear_2006 _Iyear_2007 L.openc) GMM-type (missing=0, separate instruments for each period unless collapsed) L(2/8).(L.kc cgnp) Instruments for levels equation Standard _cons _Iyear_1992 _Iyear_1993 _Iyear_1994 _Iyear_1995 _Iyear_1996 _Iyear_1997 _Iyear_1998 _Iyear_1999 _Iyear_2000 _Iyear_2001 _Iyear_2002 _Iyear_2003 _Iyear_2004 _Iyear_2005 _Iyear_2006 _Iyear_2007 L.openc GMM-type (missing=0, separate instruments for each period unless collapsed) DL.(L.kc cgnp) Arellano-Bond test for AR(1) in first differences: z =
Pr > z = 0.001 Arellano-Bond test for AR(2) in first differences: z = 0.42 Pr > z = 0.674 Sargan test of overid. restrictions: chi2(189) = 384.95 Prob > chi2 = 0.000 (Not robust, but not weakened by many instruments.) Hansen test of overid. restrictions: chi2(189) = 83.69 Prob > chi2 = 1.000 (Robust, but can be weakened by many instruments.)
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 46 / 50
Dynamic panel data estimators A second empirical exercise
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 47 / 50
Dynamic panel data estimators A second empirical exercise
. predict double kchat if inlist(country, "Italy", "Spain", "Greece", "Portugal > ") (option xb assumed; fitted values) (1619 missing values generated) . label var kc "Consumption / Real GDP per capita" . xtline kc kchat if !mi(kchat), scheme(s2mono)
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 48 / 50
Dynamic panel data estimators A second empirical exercise
55 60 65 70 55 60 65 70 1990 1995 2000 2005 1990 1995 2000 2005
Graphs by ISO country code
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 49 / 50
Dynamic panel data estimators A second empirical exercise
Christopher F Baum (BC / DIW) Dynamic Panel Data estimators Boston College, Spring 2015 50 / 50