Hello everyone,
I have got a panel data set consisting of 12 waves. Every individual has got a unique number called "pid". I have merged the waves in a long format sorted by pid and wave, so each individual has 12 rows of the numerous variables that are in the dataset.
My question is how do i calculate the number of unique individuals who are receiving at least one inheritance (variable= windffy) in the data set?
As when I sum windffy, the number of observations includes individuals who have received an inheritance for more than one of the waves.
(sorry if this is not clear)
Thanks in advance!
Related Posts with calculating unique occurrence of variable
Recoding in panel dataHow to recode values by groups in panel data by using Stata commands? For example, the score for id1…
Probit Marginal EffectHello Everyone, I am working on a Probit regression for my research, I want to report the marginal e…
Create fiscal years from years and monthsDear Statalist, I would like to create a fiscal year variable that take values like 2005-06, 2006-…
Gravity model of migration: ppml vs. ppmlhdfeDear all, I'm working on a gravity model of migration for my thesis. My data contains 28 EU countri…
Propensity Score matching: how to define the dependent variableHello everyone, we are trying to use propensity score matching (PSM) to find the suitable control gr…
Subscribe to:
Post Comments (Atom)
0 Response to calculating unique occurrence of variable
Post a Comment