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
Reshape multiple years observations from wide to longDear all, my current data structure is as follows: DATA CompanyID 2011 2012 2013 … 2019 VarOfIn…
9 Month back for date of birthHi, I have data on b1 (month of birth) and b2 (year of birth). I want to go back 9 (nine) months fro…
nlcom followed by sureg gives error "last estimates not found"I'm trying to estimate direct and indirect effects for a logit model with multiple imputation. I ha…
Store and export p values from pwcorr in a loopI am running correlations for ~3,000 variables. The nuance of the usefulness of p values versus conf…
How do I estimate a first order autoregressive equation with firm and year fixed effects ???I am really new to Stata and I need to estimate the following empirical specification on Stata for m…
Subscribe to:
Post Comments (Atom)
0 Response to calculating unique occurrence of variable
Post a Comment