I'm trying to run a fixed effects panel data analysis with a cumulative file of the European Social Survey from 2002 to 2018 with the command xtset cntry essround.
After having used the encode command for my country variable which seems to work fine, I wanted to include my timevariable as well which the variable essround provides (see picture).
However when I try to run the command I get the following error: repeated time values within panel.
I've read of people who use the following command to combat this: drop if yearvar==yearvar[_n-1] which however leads to me dropping all my observations but 9; the 9 observations which make out each of my time waves of data collection.
How do I solve this problem?
Best regards
Related Posts with Repeated time values within panel error in ESS cumulative file
FMM lcprob variablesHello experts, In FMM (finite mixture models), our main models(s) could have certain IVs. Then, I c…
Complex dummy variableHi STATLIST, Merry Christmas to those celebrating it and happy new Year. I have a question about th…
Simple Time Series RegressionHello everyone, I have a fairly simple question and hope you guys can help me out. I already studie…
Writing loop for multiple regressionsI have 10 dependant variables, y1-y30, and its respective lagged variables, lagy1-lagy30. I would li…
calculating and graphing marginal effects from logit with interaction effect of two categorical variables Code: * Example generated by -dataex-. To install: ssc install dataex clear input byte(owndecision…
Subscribe to:
Post Comments (Atom)
0 Response to Repeated time values within panel error in ESS cumulative file
Post a Comment