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
Error in -merge- commandHi, I have to merge about 40 datasets using a key ID. The "hhid" variable present in all datasets, b…
Finding the response rate to questionnaireDear Statalist, I have a survey data about the respondents' beverage intake information across mult…
forbidden regression (quadratic regression)Dear All, Suppose that I regress y on x and x^2, along with other covariates. In addition, x is endo…
How to use esttab with psmatch2?Hi everyone, I am using propensity score matching for my research. I wanted to use esttab to create…
Calculate mean when values are missingI need to create a variable that is the mean of the observations from three other variables. I did t…
Subscribe to:
Post Comments (Atom)
0 Response to calculating unique occurrence of variable
Post a Comment