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 do not know whether this is a correct way to count: egen countnum=count( id ), by( year place )
Could anybody lend me a hand?
Thank you
Array
Related Posts with To count observations based on another variables
How to get conditional maximum dates and values?Hi all, I would like to find the largest % of institutional ownership for each deal, for example, f…
merging two datasets by looking into one variables or second variable if the first one was not matchHello I have two dataset that I need to merge. I created a unique identifier between these two datas…
Utilizar SPSSHello, I’m trying to use the PISA dataset but I’m not being able convert it from SAS and SPSS. It i…
ComandesHello, I’m trying to use the PISA dataset but I’m not being able convert it from SAS and SPSS. It i…
Cropping confidence interval (lfit) capturing impossible valuesHi all, Forgive the potentially daft/simple question, but could anyone advise how I crop the confid…
Subscribe to:
Post Comments (Atom)
0 Response to To count observations based on another variables
Post a Comment