Hi all,
I have a triple difference coefficient: the interaction between three dummy variables.These variables are post, treat_ind and treat_county:
I have another variable, which is county specific. It is called "devel". It is continuous. I am certain that the treatment effect, i.e. the effect of the triple difference coefficient, varies across the levels of the continuous variable "devel". Thus I want to interact it with the triple difference coefficient in a regression. Then, I want to take the marginal effect of the triple difference coefficient at each value of "devel". I start with the following code: (reghdfe from ssc install)
I am aware that 1.post#1.treat_ind#1.treat_county is an interaction itself.
So will the output of this margins command give me the average marginal effect of the triple difference coefficient on dep_var at each of the values of the "devel" variable?
I have a triple difference coefficient: the interaction between three dummy variables.These variables are post, treat_ind and treat_county:
Code:
1.post#1.treat_ind#1.treat_county
Code:
levelsof devel, local(develvals) reghdfe dep_var 1.post#1.treat_ind#1.treat_county 1.post#1.treat_ind#1.treat_county#c.devel, abs(i.countyfips#i.ind i.ind#i.time i.countyfips#i.time) cluster(countyfips) margins, dydx(1.post#1.treat_ind#1.treat_county) at(devel=(`develvals'))
So will the output of this margins command give me the average marginal effect of the triple difference coefficient on dep_var at each of the values of the "devel" variable?
Comment