Hello Statlist,
I have a panel data for patients from year 2015-2019. The treatment started in 2017. There are several cohort of patients:
1- cohort of untreated=those who never took treatment
2- cohort of always treated=those who always took the treatment
3- cohort of only 2017=those who take the treatment in 2017 but not in 2018 and 2019
4- cohort of only 2018=those who take the treatment in 2018 but not in 2017 and 2019
5-cohort of only 2019=those who take the treatment in 2019 but not in 2017 and 2018
6-mixed cohort 2017 and 2018= those who take the treatment in 2017 and 2018 and not in 2019
7-mixed cohort 2017 and 2019= those who take the treatment in 2017 and 2019 and not in 2018
8-mixed cohort 2018 and 2019= those who take the treatment in 2018 and 2019 and not in 2017
I want to see the effect of treatment on outcome1. Could you please show me how may I implement a DD model in this case where the treatment switches on and off? I appreciate your help.
best,
Mahmoud
I have a panel data for patients from year 2015-2019. The treatment started in 2017. There are several cohort of patients:
1- cohort of untreated=those who never took treatment
2- cohort of always treated=those who always took the treatment
3- cohort of only 2017=those who take the treatment in 2017 but not in 2018 and 2019
4- cohort of only 2018=those who take the treatment in 2018 but not in 2017 and 2019
5-cohort of only 2019=those who take the treatment in 2019 but not in 2017 and 2018
6-mixed cohort 2017 and 2018= those who take the treatment in 2017 and 2018 and not in 2019
7-mixed cohort 2017 and 2019= those who take the treatment in 2017 and 2019 and not in 2018
8-mixed cohort 2018 and 2019= those who take the treatment in 2018 and 2019 and not in 2017
I want to see the effect of treatment on outcome1. Could you please show me how may I implement a DD model in this case where the treatment switches on and off? I appreciate your help.
best,
Mahmoud
Comment