Hi. I'm studying Difference-in-Differences and have read Zeldow&Hatfield(2021) that is about the method of correcting bias due to observed confounders.
In the article, I understand that when there are time-varying covariates which means evolve differently by group, they confound the treatment effect so that you must adjust for the interaction of a covariate and time(time-varying adjusted model).
Time-varying adjusted model allows the coefficient on the covarite to vary over time.
I know the commands 'didregress' and 'xtdidregress' fit DID models in STATA17.
But I'm not familiar with the commands yet.
Do the commands 'didregress' and 'xtdidregress' can fit time-varying adjusted DID models?
(I'm not good at english. I'm sorry if you cannot understand my writing and if needed, I would explain or add some details.)
In the article, I understand that when there are time-varying covariates which means evolve differently by group, they confound the treatment effect so that you must adjust for the interaction of a covariate and time(time-varying adjusted model).
Time-varying adjusted model allows the coefficient on the covarite to vary over time.
I know the commands 'didregress' and 'xtdidregress' fit DID models in STATA17.
But I'm not familiar with the commands yet.
Do the commands 'didregress' and 'xtdidregress' can fit time-varying adjusted DID models?
(I'm not good at english. I'm sorry if you cannot understand my writing and if needed, I would explain or add some details.)

Comment