Dear All,
I have an individual level panel data with 58 monthly waves per individual. The dependent variable is incidence of poisoning (binary) and I am interested in evaluating the impact of an emergency department intervention on future poisonings (again binary). Since, my outcome variable is a binary, I want to implement Puhani 2010 (https://www.sciencedirect.com/scienc...65176511004769) non-linear changes-in-change model. I know that if treatment was at a fixed time for the whole sample, i.e. one pre and one post period only, I should do the following:
gen tp=treated*post
where, treated is a binary and post is also a binary and fixed across individuals. In this case, tp uniquely captures the interaction term and is 1 for the treated group following the intervention.Next,
probit y i.(treated post tp) x
margins treated, dydx(post) pwcompare(cimargins effects)
But, I am not sure how to implement this when the post variable varies across individuals (time varying treatment). In that case, how do I need to adapt the above code please?
Many thanks,
Sumedha.
I have an individual level panel data with 58 monthly waves per individual. The dependent variable is incidence of poisoning (binary) and I am interested in evaluating the impact of an emergency department intervention on future poisonings (again binary). Since, my outcome variable is a binary, I want to implement Puhani 2010 (https://www.sciencedirect.com/scienc...65176511004769) non-linear changes-in-change model. I know that if treatment was at a fixed time for the whole sample, i.e. one pre and one post period only, I should do the following:
gen tp=treated*post
where, treated is a binary and post is also a binary and fixed across individuals. In this case, tp uniquely captures the interaction term and is 1 for the treated group following the intervention.Next,
probit y i.(treated post tp) x
margins treated, dydx(post) pwcompare(cimargins effects)
But, I am not sure how to implement this when the post variable varies across individuals (time varying treatment). In that case, how do I need to adapt the above code please?
Many thanks,
Sumedha.
Comment