Hello, I'm a first-time poster and newbie to the world of Stata. I am trying to estimate a fixed effects model with city as the entity variable and year as the time variable in a panel data set I have. I am typing "xtreg city year, fe" and getting an error message "must specify panelvar; use xtset."
I then entered the command "xtset city year", then "xtreg city year, fe" and got a different error message. This time it says "the panel variable city may not be included as an independent variable."
I have no idea what this means or how to fix it. I would appreciate any tips. Thank you very much for your time.
Related Posts with Fixed Effect troubles
Understanding Monte Carlo simulations in "When Should You Adjust Standard Errors for Clustering?" (Abadie at al, 2017)Hi statalist members, This is my first post here so pardon me if I deviate from the established eti…
AverageHow should I proceed in the following situation: - I have the earnings of population in 2004 and 200…
Too many values error when trying using tabulate commandHi I am trying to create a table showing the distribution of age of first marriage across many diffe…
Sample Cross-CorrelationDear All, I am currently working on an event-study related topic and stumbled accross a significance…
Two way graphsHello, I want to make of the assets turnover of two industries by semester in a way that in the grap…
Subscribe to:
Post Comments (Atom)
0 Response to Fixed Effect troubles
Post a Comment