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
append iterativelyHi all, I am trying to append iteration some files (if they exist) belonging to different folders. …
Lagged variable and panel structureDear Statalists At the moment I am dealing with a apparently simple problem. The following data ser…
How to count the number of missing values?How to count the number of missing values? I have a simple question I would like to know asap. How …
rename all variablesHello everyone, I am trying to rename ALL variables in my dataset. The end results are supposed to …
Import excel date format instead of general numberHi, I'm importing an excel spreadsheet (downloaded/refreshed from Datastream, the data provider) bu…
Subscribe to:
Post Comments (Atom)
0 Response to Fixed Effect troubles
Post a Comment