For my matched case-control study, I’m preparing my data for a conditional logistic regression. Using the matching variables, I’ve got a dataset containing the details for cohort (cases and controls identified). At this stage I know my cases and the controls. However, I do not know which controls were matched to which case. I need to make risk sets or strata so that I can perform conditional logistic regression.
Each case and control have unique identifying variable, I want to identify the controls matched to each case. Could you please help me how I can link the cases to their matched controls and assign them a specific id for each? My matching ration is 1:3.
Looking forward to hearing from you.
Thank you,
Hi Smantha,
Yes, they do. I've three matching variables; age (+-2 years), gender (match same gender) and year of hospital admission (+-2 years). What I want is to choose three controls for per case among possible controls and want to identify the controls matched to each case.
More help is appreciated!
Kind regards,
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.