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"
Mixed results of datas in normality testI have a data set with datas satisfying normality and for few of the variables, it doesn't. Please s…
Reshaping Long to Wide when the ID is Not UniqueHi Everyone, I have Stacked on how to manipulate my data to make the Reshape Command Works. In my c…
InequalityHello What age should be considered in order to calculate the number of children and the number of a…
for loopshello, im trying to split a huge data set into about 400 files so that i can run an analysis on the…
Mean of Predictions (Point Estimates)Hey guys, I was hoping you would help me clarify a post-estimation issue I am having in stata. Assum…
Subscribe to:
Post Comments (Atom)
0 Response to How to fix "repeated time values within panel"
Post a Comment