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,
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.