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
Rearranging columns and rows to make it country-level databaseI want to create two columns: Column A with all the countries listed in the photo below Column B wit…
Side-by-side boxplots with markers for meansHello, I have country-level panel data for GDP per capita for the past 10 years that I wish to repr…
Unable to report & understand relogit marginal effectsDear all, In my (regression) analysis I am trying to see when companies are more likely to demand a…
Variable not recognized after modificationHi everyone, For company data analysis for my thesis, I wanted to create industry dummy variables b…
Creating a scatterplot with two different variablesHow to create a scatterplot with two different variables one being dependent and one being independe…
Subscribe to:
Post Comments (Atom)
0 Response to Repeated time values within panel error in ESS cumulative file
Post a Comment