Dear Statalist,
I am running a staggered TWFE with dynamic/heterogenous effects and a continuous treatment. My code is as follows:
did_multiplegt_dyn price myid monthyear capacity, effects(5) placebo(4) cluster(myid) save_sample
I have a panel data of 60 period(monthyear) from 2016 to 2020 and I am interesting on the impact of the independent variable - capacity change (continuous variable) on the dependent variable - market price (continuous variable).
The code above runs fine but failed when I tried to include a control variable - invest (also a continuous variable, and vary across monthyear). The code that fail is as follows:
did_multiplegt_dyn price myid monthyear capacity, controls(invest) effects(5) placebo(4) cluster(myid) save_sample
I got an error message of "no observations". And I got the same error message regardless what variable I feed into controls().
Does anyone know what is leading this issue?
Thank you.
I am running a staggered TWFE with dynamic/heterogenous effects and a continuous treatment. My code is as follows:
did_multiplegt_dyn price myid monthyear capacity, effects(5) placebo(4) cluster(myid) save_sample
I have a panel data of 60 period(monthyear) from 2016 to 2020 and I am interesting on the impact of the independent variable - capacity change (continuous variable) on the dependent variable - market price (continuous variable).
The code above runs fine but failed when I tried to include a control variable - invest (also a continuous variable, and vary across monthyear). The code that fail is as follows:
did_multiplegt_dyn price myid monthyear capacity, controls(invest) effects(5) placebo(4) cluster(myid) save_sample
I got an error message of "no observations". And I got the same error message regardless what variable I feed into controls().
Does anyone know what is leading this issue?
Thank you.
Comment