Hi,
Does any one know how to add year and industry fixed effect (sum of Year fixed effecti,t) as control variable in diff command?
I tried to use diff command to execute the DID estimation. However, the general code is: diff y,treat(varname) period(varname) cov(z1 z2) robust
Then I tried to add i.year and i.industry in as what usually did in normal regression, however, it doesn't work.
Appreciate in advance!
Related Posts with DID issue-----how to add industry and fixed effect to diff command
Coefplot - alignment x label and plotted valuesDear all, I have run the same regression 11 times, with similar model specifications; the only diffe…
Nominal Dependent Variable and Nominal Independent Variable - Multiple Reader StudyHi Everyone, I am analyzing a study that asks participants to use a COVID diagnosis rating scale on…
how to create variable showing the percent of rows with a variable with a certain valueIn my data there is a variable called class. There is lower, middle and upper class. I would like to…
How to compare nested clogit with robust or clustered standard errorsStata/MP 14.2. No access to internet. My data is longitudinal, with 128 individuals and around 700 …
Probit regression in StataHi, I don't know if anyone can help with this: I need to run a probit regression for binary variab…
Subscribe to:
Post Comments (Atom)
0 Response to DID issue-----how to add industry and fixed effect to diff command
Post a Comment