Hello,
I am using ivreghdfe because I have an instrumental variable and state, age, and year fixed effects. I am seeking to cluster my SEs at the state level, where I have 25 states. I understand this to be an insufficient number of clusters and that I should correct for this using a wild cluster bootstrap adjustment. The postestimation command "boottest" should help with this but is not compatible with ivreghdfe when you have multiple fixed effects. I am wondering if it is sufficient to use ivreg2 and include the fixed effects in the regression as "i.state i.year i.age" and then produce a 95% confidence interval for the SEs using "boottest". Or if there is another approach that is more suitable.
I have noticed that I do not get the same result for the boottest using ivreghdfe vs. ivreg2. Different things I have tried are:
ivreg2 ln_earninc_bm (c17shr_b=frate_vs_b) i.age i.year i.statefip if age>=25 & age<=54 & mainyears==1 [aw=tot_b17], cluster(statefip)
boottest c17shr_b, cluster(statefip)
ivreghdfe ln_earninc_bm (c17shr_b=frate_vs_b) i.age i.year if age>=25 & age<=54 & mainyears==1 [aw=tot_b17], absorb(statefip) cluster(statefip)
boottest c17shr_b, cluster(statefip)
ivreghdfe ln_earninc_bm (c17shr_b=frate_vs_b) i.age i.year i.statefip if age>=25 & age<=54 & mainyears==1 [aw=tot_b17], cluster(statefip)
boottest c17shr_b, cluster(statefip)
Where I get slightly different results each time. Any advice would be greatly appreciated. I am using Stata MP 19.5. Thank you!
I am using ivreghdfe because I have an instrumental variable and state, age, and year fixed effects. I am seeking to cluster my SEs at the state level, where I have 25 states. I understand this to be an insufficient number of clusters and that I should correct for this using a wild cluster bootstrap adjustment. The postestimation command "boottest" should help with this but is not compatible with ivreghdfe when you have multiple fixed effects. I am wondering if it is sufficient to use ivreg2 and include the fixed effects in the regression as "i.state i.year i.age" and then produce a 95% confidence interval for the SEs using "boottest". Or if there is another approach that is more suitable.
I have noticed that I do not get the same result for the boottest using ivreghdfe vs. ivreg2. Different things I have tried are:
ivreg2 ln_earninc_bm (c17shr_b=frate_vs_b) i.age i.year i.statefip if age>=25 & age<=54 & mainyears==1 [aw=tot_b17], cluster(statefip)
boottest c17shr_b, cluster(statefip)
ivreghdfe ln_earninc_bm (c17shr_b=frate_vs_b) i.age i.year if age>=25 & age<=54 & mainyears==1 [aw=tot_b17], absorb(statefip) cluster(statefip)
boottest c17shr_b, cluster(statefip)
ivreghdfe ln_earninc_bm (c17shr_b=frate_vs_b) i.age i.year i.statefip if age>=25 & age<=54 & mainyears==1 [aw=tot_b17], cluster(statefip)
boottest c17shr_b, cluster(statefip)
Where I get slightly different results each time. Any advice would be greatly appreciated. I am using Stata MP 19.5. Thank you!
Comment