Hi all, I am trying to run a panel model with fixed effects for year and state. If you xtset your data, does that automatically include fixed effects for those variables, or do you need to include dummy variables as well? In other words, which model is correct?
xtset state year
xtnbreg DV IV
or
xtset state year
xtnbreg DV IV i.state i.year
Related Posts with Xtset and fixed effects
Marginal effects graph blank after using fixed effectsHi all, When trying to produce a marginal effects graph using fixed effects, the output is blank. …
How exactly does Stata calculate derivatives via the margins command for nonlinear functions?I would like to be able to manually reproduce the results that Stata provides from the margins comma…
Example of Difference in Difference approach with binary or multinomial choice modelHi,dear all: I am facing a problem that emprically dealing with descrete choice model with differen…
How Can I Assign Specific Values to a Subsample According to a Percentage Distribution?Hello everyone! I am new in this forum and looking forward to the discussions on Stata! I am curren…
Change date abbreviation in multible observationsHey, I have dates according to the following dataset: Code: * Example generated by -dataex-. To …
Subscribe to:
Post Comments (Atom)
0 Response to Xtset and fixed effects
Post a Comment