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
egen rowtotal with missing valuesHello, My code is this: Code: egen rm=rowmiss( var1- var10) . . egen Audit=rowtotal( var1- var…
Cox model refuses to calculate SEs for year dummies!Dear Statalist, I am looking for help with my Cox regression (a survival analysis). My unit of ana…
How to add zero before the observation in a variable?Dear Stata user, Suppose, I have a varibale named "price", which ranges from the 3291 (4 digits) to …
seemingly unrelated regressionHello every one I have a problem with SUER model i ran these commands HTML Code: logistic Fraud …
How to generate percentage values in a 3 way frequency table?Dear Friends; I am trying to work out my descriptive tables where I have to obtain a table of corre…
Subscribe to:
Post Comments (Atom)
0 Response to Repeated time values within panel error in ESS cumulative file
Post a Comment