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
Running Bootstrap program to Implement Control Function ApproachHello, I am trying to implement Wooldridge's control function approach and bootstrap both the first…
IV regressions with different weights in the 1st and 2nd stageDear Statalist users, I would like to run an IV regression using different weights in the first and…
Calling a block of code within a DO fileHello All, I am running a DO file to create a table of summary statistics for a large number of var…
Need to call a block of code within a Do fileHello All, I am running a DO file to create a table of summary statistics for a large number of var…
Person-Item Map in Stata?Dear StataList Users Is there a command to generate a Person-Item Map in Stata, after running the ir…
Subscribe to:
Post Comments (Atom)
0 Response to DID issue-----how to add industry and fixed effect to diff command
Post a Comment