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)
do we have user-command like reghdfe for logit or probit models?Thanks for your infomation! …
Collapse by partial groupI have a big dataset of county level demographics "County Statename Year Agegroup" where agegroup …
estat classification after logitThere has been some problems getting correct/usable results from -estat classification-, eg: https:…
Mixed regression contrastsDear Listers, Using -contrast- after the -mixed- command allows you to test the main and interactio…
Add a reference lineHi, Please, could someone share with me an example of code with "TRAJ" command, specifically the po…
Subscribe to:
Post Comments (Atom)
0 Response to Identifying consecutive waves (pre and post event)
Post a Comment