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
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