Hello,
I am supposed to use a difference and difference model to estimate the effect of mergers on the growth in R&D expenditures. I will be logging the R&D expenditures. I will also be using logSales as an independent variable. Then I need to follow the difference and difference model to create the interaction term between the treatment group and the firm type. The treatment in this case is a merger with a 1 used for each year when the firm merged. The firm type is a 1 for the firms that engaged in a merger and a 0 for the firms that did not merge during the time period of the study.
However, I am confused how to create the treatment variable.
My stata command comes out like this:
xtreg logR&D firmtype logSales
But I do not know how to make the Treatment variable for the treatment group. Then after that I need to make an interaction term between Treatment and firmtype.
Related Posts with Difference-in-difference and Treatment
Automatically run a do file when openedHello all, Is there a feature that will have Stata automatically run designated DO files when they …
Entity fixed effects model - repeated time values within panelHello, I want to run a regression in which the explained variable is the bond coupon and there are s…
estout test resultsI am trying to obtain the test results using estout command however I am unable to put them there. …
Plot survival curve of the interaction in Stratified Cox ModelDear all, I ran a Cox model with strata(year), stcox X1 X2 c.X1#i.X2, strata(year) vce(robust) X1 i…
Model fitnessDear all, Good morning! How could I measure the model fittness of teffects ipwra (inverse probabilit…
Subscribe to:
Post Comments (Atom)
0 Response to Difference-in-difference and Treatment
Post a Comment