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
from panel data to time seriesHello everyone, I want to know how to go from panel data to time series. I have this dataset: ID ye…
Interaction terms in regressionHello everyone, I am writing my BA-Thesis in Economics and hope somebody can help me out. First le…
Regression with Interaction TermsHello everyone, I am writing my BA-Thesis in Economics and hope somebody can help me out. First le…
Main effects significance and Interaction terms using logistic regression in stat 16Dear all users, I am interested to examine the effect of emotional IPV on ANC visits differ by women…
Oaxaca-Blinder decomposition: percentage greater than 100Dear all, I'm currently running the Oaxaca-Blinder Decomposition on a binary outcome variable, stun…
Subscribe to:
Post Comments (Atom)
0 Response to Fixed Effect troubles
Post a Comment