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 combine SDC Platinum/ThomsonOne with CRSP?I have a dataset from SDC containing 127 000 M&A bids, including announcement date, year, compan…
Exporting Mean/Median of Variable X by variables Y and ZI am using data from the IPUMS-CPS ASEC series. I am looking to calculate the median income for each…
Exporting Mean/Median of Variable X by variables Y and ZI am using data from the IPUMS-CPS ASEC series. I am looking to calculate the median income for each…
Lasso inference for cox regressionDear STATA team, I hope all is well. I was trying to do lasso inference for survival ,model. The va…
percentage changeI have earnings data for two years, 2010 and 2020 I want percentage change separate for female and m…
Subscribe to:
Post Comments (Atom)
0 Response to To count observations based on another variables
Post a Comment