Hi,
I would greatly appreciate some guidance with stata code that would help prepare my dataset for analysis on timing of event occurrence.
Data structure: longitudinal panel data from a population based survey with 16 years of follow-up. Information on chronic conditions and lifestyle factors are updated every 2 years with up to 8 discrete waves of data collection for each participant.
Research questions:
Do persons with arthritis have a higher prevalence of heart disease and major risk factor prior to onset of arthritis (index date) compared to the general population? (separating time in to 2 years prior to arthritis diagnosis, and any time prior to arthritis diagnosis).
Is arthritis an independent risk factor for incident heart disease and major risk factors for heart disease in the general population (excluding persons with these prevalent conditions)?
What I would like to do ideally is create a matched cohort design, where the first panel wave where a participant reports having arthritis is considered the "index date" for matching purposes and then a ratio of controls (could be 3 or 2:1) are selected for each arthritis case matching on age, sex and time in study.
Thanking you advance
Orit
I would greatly appreciate some guidance with stata code that would help prepare my dataset for analysis on timing of event occurrence.
Data structure: longitudinal panel data from a population based survey with 16 years of follow-up. Information on chronic conditions and lifestyle factors are updated every 2 years with up to 8 discrete waves of data collection for each participant.
Research questions:
Do persons with arthritis have a higher prevalence of heart disease and major risk factor prior to onset of arthritis (index date) compared to the general population? (separating time in to 2 years prior to arthritis diagnosis, and any time prior to arthritis diagnosis).
Is arthritis an independent risk factor for incident heart disease and major risk factors for heart disease in the general population (excluding persons with these prevalent conditions)?
What I would like to do ideally is create a matched cohort design, where the first panel wave where a participant reports having arthritis is considered the "index date" for matching purposes and then a ratio of controls (could be 3 or 2:1) are selected for each arthritis case matching on age, sex and time in study.
Thanking you advance
Orit
Comment