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"
Creating panel data from cross sectional dataHi everyone, I am trying to create a panel dataset starting from cross-sectional data. Code: * Ex…
Multitple color graph barDear Stata users, I'm trying to produce a twoway graph, plotting size effect as bar and adding conf…
Find out what variables in .dta file are used in .do fileI am reviewing an old project by someone who is no longer reachable. I have her .dta file with inpu…
Refering to factor variables post estimationDear All, I want to use lincom to estimate total effect after running a regression of the form: C…
Binary Variable GraphHi All; I need help about binaries. I reviewed the topics but i couldn't find solution. I have five…
Subscribe to:
Post Comments (Atom)
0 Response to How to fix "repeated time values within panel"
Post a Comment