This question is not strictly related to Stata, I will remove if it is inappropriate.
In a diff-in-diff framework, I have discovered that a control variable (say variable x) differently affects the outcome variable, depending on the treatment status. Variable x is time-varying but constant across treated and controls. Therefore, if I insert x as a regressor I will not capture the different impact fro treated and untreated, of x on y.
One way I have in mind is: generating interaction terms between x and dummy variables for treatment/control and include them in the regression as regressors in place of x.
I mean:x_treat=x* DummyTreatment and x_control=x*(1-DummyTreatment)
Probably the fact that a control variable differently affects the outcome variables can be problematic for the parallel trend assumption. However, I am wondering whether we can solve this problem with this approach.
Thank you!
Cross-posted here: https://www.econjobrumors.com/topic/...1#post-5011971
Related Posts with Diff-in-diff and parallel trend assumption
Estimate parameters of an indicator* that* minimize the difference between current GDP and potential GDP.Dear all, I am having a macro panel for a larger period of years and for a number of countries with…
Conformability error, r(503)Hi. I've been getting the conformability error r(503) on running the code below. Obviously my matrix…
table creation after foreach and selecting variablesHello everybody and thanks in advance. I'm wondering how to create tables in Stata 16 after a loop v…
Dropping observations of a variableHey all, Wonderful community here. I'm new to coding in stata. I was curious if someone could walk …
Netherlands coordinates not matching when reverse geomatchingHello, I am using the 'geoinpoly' package to extract countries from coordinates. The data I am usin…
Subscribe to:
Post Comments (Atom)
0 Response to Diff-in-diff and parallel trend assumption
Post a Comment