I have longitudinal data on individuals (id) surveyed in two years. Some individuals were not surveyed the second time. I would like to drop all outcomes on individuals surveyed only once so that I am left with a balanced data set.
How do I do this in Stata?
相关问题
- Simple way to do a weighted hot deck imputation in
- How to extract unique strings from a macro?
- Read multiples of same columns in a fixed width fi
- Using Rstudio as an IDE for other programming lang
- Stata - Moving Finite Product
相关文章
- sending code from vim to stata
- Oaxaca Decomposition in R [closed]
- How to use RStudio to write a RMarkdown file with
- lme4::glmer vs. Stata's melogit command
- is there an equivalent to Stata's egen functio
- How to count the number of observations in R like
- Alternative IDE for Stata [closed]
- Precisions and counts
This might do it for you:
The
by id
will execute the command following the colon separately for each value ofid
, and_N
will be the number of observations with thatid
.