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"
Controls in IV model are correlated with instrument?I am seeking to understand what it means for my IV model (2SLS, in Stata) if my controls are correla…
Exporting regressions to excel Effect of various farm practices on crop yield (Kg/Acre) Lentil Lentil green gram gree…
SPSS Command to STATAHello all; Anybody know how to transform the following SPSS command into a STATA command? Thank you…
Keeping the latest date when difference between two dates is 1 or 2 or 0 Hi, I want to retain the latest date when the difference between two BOD meeting dates is 1 or 2 o…
Convert variables to numeric results in data loss when a regression is runDear all, A dataset with 11 variables was imported to STATA using File -> Import Excel spreadshe…
Subscribe to:
Post Comments (Atom)
0 Response to How to fix "repeated time values within panel"
Post a Comment