I am trying to run a joint hypothesis test using boottest (owing to few clusters) in Stata 18. I am a little confused about how to apply the proper syntax for my specific case. There are multiple ways to write what I'm trying to do if I were using the test command that would all yield the same result, but writing it in these different ways gives different results with boottest. I think the answer is probably found in the boottest helpfile in the paragraph that begins, "boottest is designed in partial analogy with test," but I'm having a little trouble making sense of everything being described there.
See example below that is analogous to my case:
Could anyone help me make sense of what the difference in the null hypothesis is for these two different specifications of boottest?
Briefly, my purpose for running this is that years 1-5 are a pre-intervention period and I want to run a joint hypothesis test on these estimates as supportive evidence for parallel trends between treatment and control in the pre-intervention period. In other words, the null hypothesis should be that all coefficients are equal to zero.
See example below that is analogous to my case:
Code:
clear all *Generate fictional data set obs 1000 set seed 999 gen year = ceil(runiform(0,10)) gen testscore = ceil(runiform(1,100)) gen panel_unit = ceil(runiform(0,16)) gen treatment = (panel_unit>=8) *Run model areg testscore i.treatment##i.year , absorb(panel_unit) vce(cluster panel_unit) *test gives same result regardless of how this is written test (1.treatment#2.year=0) (1.treatment#3.year=0) (1.treatment#4.year=0) (1.treatment#5.year=0) test 1.treatment#2.year =1.treatment#3.year =1.treatment#4.year= 1.treatment#5.year=0 *boottest gives different results depending how it is written boottest (1.treatment#2.year=0) (1.treatment#3.year=0) (1.treatment#4.year=0) (1.treatment#5.year=0) , cluster(panel_unit) nograph seed(999) boottest 1.treatment#2.year =1.treatment#3.year =1.treatment#4.year= 1.treatment#5.year=0 , cluster(panel_unit) nograph seed(999)
Briefly, my purpose for running this is that years 1-5 are a pre-intervention period and I want to run a joint hypothesis test on these estimates as supportive evidence for parallel trends between treatment and control in the pre-intervention period. In other words, the null hypothesis should be that all coefficients are equal to zero.
Comment