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
Help with writing code for data with value labelsHi all, please consider the following data set: input str3 ID byte str9 shock byte str1 evnt ID…
Interpret interaction term of two continuous variables after ordered logit estimation.Hi Statalist members, I'm running the ordered logit model and find struggling how to interpret the …
Year fixed effectsHi all, I am seeking for explanation on year fixed effects, why one would need them as a control in…
True discard of precision with roundHi all, I'm using Stata 14 and wish to round data in one of my variables to 1 dp. I shall be retaini…
Addressing endogeneity in PPMLDear all, I have come across 2 methods of addressing endogeneity in ppml models, the use of bilater…
Subscribe to:
Post Comments (Atom)
0 Response to DID issue-----how to add industry and fixed effect to diff command
Post a Comment