Hi Statalist,
I'm working with a dataset where the variables are collected over about 20 years and each year the data collected are organised into 'waves' with additional people being added to the various waves as the years went on. I need to identify people who have information on their depressive status (psceda) in the one wave before and one wave after a hip fracture event (hefrac). So essentially I need to identify which individuals have data pre event and post event, across all the waves. Anyone know any code to achieve this please?
I've got as far as being able to identify which individuals have data for 3 waves but haven't been able to figure out to specify the consecutive element
(count if hefracwaves >=3 & hefracwaves !=.)
Thanks in advance
Related Posts with Identifying consecutive waves (pre and post event)
Cox regression assumptionI am doing a research to examine the association between sleep and all-cause mortality. The average …
SEM, error coefficients output.Hi, How can I receive the outputs for the "path coefficient" of error terms to each items of a laten…
New Stata 16 versions of dolog, dotex and dologx on SSCThanks as always to Kit Baum, new versions of the dolog, dotex and dologx packages are now available…
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…
Probit Marginal EffectHello Everyone, I am working on a Probit regression for my research, I want to report the marginal e…
Subscribe to:
Post Comments (Atom)
0 Response to Identifying consecutive waves (pre and post event)
Post a Comment