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
tsfill for time series data, ending fill at specific dates by subgroupsI have panel data, with an id variable, two time variables: t0 (first date); t1(end date), and a spe…
Cutting out the appropriate end of the variables Code: * Example generated by -dataex-. To install: ssc install dataex clear input float(quarter Dl…
Help with xtreg, time fixed effects, local authority fixed effectsHi, I am new to Stata and therefore would appreciate some help with actually running my panel regres…
Binscatter plot warningHello, I just want to know whether getting the following warning is normal for binscatter plots, I …
nehurdle available on SSCHi everybody, I would like to announce that thanks to Kit Baum, nehurdle is now available at SSC. …
Subscribe to:
Post Comments (Atom)
0 Response to Testing underpowerment of pre intervention dummy
Post a Comment