I am trying to test mediation using difference-in-differences. My outcome variable is company total sales and my treatment variable is boycott (which equals 1 every year after a company is boycotted initially by consumers and 0 before that date and for control companies). I know in the traditional DID I might write:
Code:
xtreg sales boycott $controls i.year, fe
Thank you in advance.
RC
0 Response to Mediation Analysis in Difference-in-Differences (DiD)
Post a Comment