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)
Panel Data Average Line GraphsHi everyone, I am using panel data and am trying to graph CEO compensation over a specific time peri…
How to generate 2nd Y-axis for Having two connected line graphs on one graphI have used the following code to generate two seperate graphs. How do I combine the two graphs onto…
¿Como mantener la escala x: 2007 - 2018 y graficar solo una barra 2017?* Example generated by -dataex-. To install: ssc install dataex clear input float(año pc pc_rural pc…
Showing proportions in tables with subcolumnsDear community, How do I show the proportion female/male for each income quintile as shown in the f…
Rolling regression GARCH volatility predictionHello Statalisters, I have been attempting to run a rolling GARCH model that predicts variance with…
Subscribe to:
Post Comments (Atom)
0 Response to Identifying consecutive waves (pre and post event)
Post a Comment