Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 72802

Fixed Effects and repeated time values within panel

$
0
0
Hey I want to estimate a Fixed Effects model using a dataset where I have values for different countries and different years. I have destring Countries using this command:
encode Country, gen(nb) and I am now trying to run xtset nb Year. But when I do so the message "repeated time values within panel" appears (which I don't know how to fix). If I ignore it and enter xtreg Y X1 X2, fe the following error message appears: "must specify panelvar; use xtset" while I have just used xtset previously. Does anyone know how to fix this problem please? Thank you for your help

Viewing all articles
Browse latest Browse all 72802

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>