Dear Statalist,
I have a problem running a DID. I have students who are assigned to a program. The assignment is random, so I have a treatment and a control group. The year in which the treatment is received is random as well and varies across students.
I want to run a DID and I think that a possible specification could be:
y_it=\alpha+beta*Treatment_i+year_fe+delta*(Treatm ent_i*Post_t)+e
I also want to compute the time varying fixed effects. Can I do:
y_it=\alpha+beta*Treatment_i+year_fe+sum delta_t*(Treatment_i*Post_t*Year_t)+e
Thank you!
I have a problem running a DID. I have students who are assigned to a program. The assignment is random, so I have a treatment and a control group. The year in which the treatment is received is random as well and varies across students.
I want to run a DID and I think that a possible specification could be:
y_it=\alpha+beta*Treatment_i+year_fe+delta*(Treatm ent_i*Post_t)+e
I also want to compute the time varying fixed effects. Can I do:
y_it=\alpha+beta*Treatment_i+year_fe+sum delta_t*(Treatment_i*Post_t*Year_t)+e
Thank you!

Comment