what this error message means is that, contrary to your apparent belief, SHHID appears in more than one observation - just as Stata has told you; if this should not be true, then you need to find them; e.g.,
or
and then decide what to do with them
note that I ended the last set of commands with a help - looking at this help file will lead you to some alternatives for finding out what is going on
Code:
sort SHHID edit if SHHID==SHHID[_n-1] | SHHID==SHHID[_n+1]
Code:
duplicates report SHHID help duplicates
note that I ended the last set of commands with a help - looking at this help file will lead you to some alternatives for finding out what is going on
Comment