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
Funnel plots for one arm proportion meta analysisHi,
I am performing an one-arm proportion metanalysis of incidence studies.
Using this command "me…
Non-negative continuous right-skewed (zero-inflated) panel data analysisCurrently I am using
Code:
xtreg, fe vce(cluster ID)
in Stata/MP 14.2 with panel data with 42 entit…
How do you change frequency of dataThe data is currently monthly data. I would like to find the average of the 12 months into a yearly …
Checking for Assumptions before running a fe panel data model (Data Diagnostics)Hi,
I am using panel data with 820 companies across 19 years (i.e. 15580 observations) and each obs…
Generating new variable - Qualtrics exportI am generating a new variable based on existing variables in my dataset which were exported from Qu…
Subscribe to:
Post Comments (Atom)
0 Response to To count observations based on another variables
Post a Comment