For testing the validity of parallel trend assumption I need to know how many observations I have ( state-year level) in each lag of my event study. The idea is that parallel trend tests can be underpowered, and I need to make sure that I have enough observations in the pre-time to be able to correctly reject the null hypothesis.
I've so far figured out how I can address the issue. The problem is - still quite didnt wrap my head around how I can code it :
1. I need to Create a relative year measure first
2. Then , I need to Use bysort or a loop and "tab statefip" for relative year values (if statement)
Any suggestion how I should code it up for these two steps ?
Related Posts with Testing underpowerment of pre intervention dummy
Loop through string and numeric variablesHello, I am trying to make the following code work but it returns "var not found r(111);" I understa…
Postestimation: saving estimates of a two-part modelI am looking for a command that will display estimates of a two-part ML estimation. This model predi…
control group selection for DiDHello! I would like to estimate the effect of a flood event on land prices. I have decided to use a …
Replacing Prefix of Variable LabelsHello all, I just reshaped data from long to wide and now have four sets of about 15 variables with …
using ipdmetan functionHi everyone I am running a two-stage IPD meta analysis using the ipdmetan function: Code: ipdmeta…
Subscribe to:
Post Comments (Atom)
0 Response to Testing underpowerment of pre intervention dummy
Post a Comment