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
Different results xtmelogit vs. melogitDear all, This is my first post. I read the FAQ and I hope I am not breaking the rules. Here are t…
Assigning preferred IDs to to District Names of a large Panel DatasetHello, I have year-wise data files which have household level data on wide-ranging variables. The pr…
Using only end of month values for a daily dataset?Hey I have a dataset in this format: Date(daily) var1 var2 var3 var4 var5 I only want to work wit…
Replacing missing values with the mean by group via a loopHello, I have a large dataset of 59,000,000 observations. There are a 50 variables each beginning …
Variable assigning number to dates within periodsHi. I have a dataset where I have registered observations on specific dates within a different peri…
Subscribe to:
Post Comments (Atom)
0 Response to Xtset and fixed effects
Post a Comment