Hello everyone,
I have tried to find a way to know how many candidates repeat and don't repeat in the same place through time. The thing is I have an append with lots of observations and these observations can be the same id in a different year.
I know that using egen countnum=count( id ), by( id ) is a correct way to know whether the id is repeated, but what I do not know is whether this is a correct way to count whether the id repeat in the same place through time.
Could anybody lend me a hand?
Thank you
I have tried to find a way to know how many candidates repeat and don't repeat in the same place through time. The thing is I have an append with lots of observations and these observations can be the same id in a different year.
I know that using egen countnum=count( id ), by( id ) is a correct way to know whether the id is repeated, but what I do not know is whether this is a correct way to count whether the id repeat in the same place through time.
Could anybody lend me a hand?
Thank you
Comment