Now I have data like:
hhid geo
1 1
1 1
2 2
2 2
3 3
3 3
And I use command "xtset hhid geo", there is a error that "repeated time values within panel".
I know this is because hhid is repeated, but I don't want to use "duplicates drop hhid geo, force" because I will lose half of data. hhid means "household id", so even though the hhid are same, the persons they represent are not same.
In this case, how can I fix this error without delete any data?
I'm looking forward to your help, thank you!
Related Posts with How to fix "repeated time values within panel"
From monthly to yearly in %Hello! Code: * Example generated by -dataex-. For more info, type help dataex clear input float(fu…
Ordinal independent variable treated as continuous & marginal effects in ordinal logistic regressionHello, I am an economics student doing an undergraduate empirical dissertation using data from the …
Quarter Averages to Yearly AveragesHello, Code: * Example generated by -dataex-. For more info, type help dataex clear input float(fu…
complex tag - I thinkHello, below is a case where a person has 2 rows of data and and 2 different values for the variable…
Time series dummy variableHi all, I am trying to make a time-series line plot for employment as a dummy variable (called "lfs…
Subscribe to:
Post Comments (Atom)
0 Response to How to fix "repeated time values within panel"
Post a Comment