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
Abrreviate variable name Stata 15.1Hi all, I have updated my Stata installation from 13 to 15.1. It seems this new version does not use…
Creating summary statistic tables with multiple variables with multiple super-columns.Hi all, I am trying to replicate the results of a paper, and I am having trouble creating nicely fo…
Sample size calculation using one sided test with power commandHello all, I am trying to run a test to determine the sample size where the outcome is proportions …
how to use regexm to analyse string variablesDear All Can anyone help me in finding an easier way to categories open ended questions. an examp…
Cut name variable into two variables to get casteHello I am trying to segregate the name variable into two separate name and caste variables. (The s…
Subscribe to:
Post Comments (Atom)
0 Response to Difference-in-difference and Treatment
Post a Comment