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
Panel data: Creating a bilateral dataset with countries and years (replicating the dataset for each panel)Hi everyone, I have a panel dataset of exchange rate with 200 countries and 16 years, please find b…
Contrast tablesHi all, New Statalist user here with a simple question (I'm a long time Stata user who is trying to…
Weekly meansHello Everyone!! I need to obtain weekly means for some measurements. I need a weekly mean by subjec…
Estimating risk difference for binary outcome in cluster RCTI am analysing data from a cluster RCT looking at the effect of an intervention (int) in health cent…
Balance an unbalanced datasetHi all, I have a strongly unbalanced dataset of countries observed by year. I would like to balance…
Subscribe to:
Post Comments (Atom)
0 Response to DID issue-----how to add industry and fixed effect to diff command
Post a Comment