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
Time invariant dummies.Hi, I am performing a fe model and I am adding a series of country dummies to control for country f…
Panel DataHi, I am using panel data with the wave variable ranging from 1 to 10 however i would like to focus…
Testing stability of reggression discontinuity model (TED)Hello Statalisters, I need your valuable advice. Having applied in my analysis regression discontin…
forvalue loop for discontinuous variableHow I can use a forvalue loop over the variable whose values are not sequentially continuous? I want…
How can I check if a string has repeated words?I know the moss package is related to this but I cannot make it work yet(one similar post can be fou…
Subscribe to:
Post Comments (Atom)
0 Response to Repeated time values within panel error in ESS cumulative file
Post a Comment