Dear All,
I am designing a matched case-control study. I have 25 patients diagnosed with COVID and cancer as the case group. I would like to select 50 subjects from a dataset containing 4000 cancer patients as a comparison/control group based on the following matching variables: age (+/-5 years), cance type (8 cancer types: lung, melanoma, sarcoma...etc), gender (male vs. female), year of chemotherapy, race (White vs. Black vs. Others) and survival > 6 months (Yes/No). The priority of the matching variables are listed as the order above.
Can you please advise me on the code? Please let me know if you need further clarifications.Thank you!
@Reeza Thanks for your suggestions. l am not specifically looking for propensity score matching but just the regular matching step. Is there a code for that instead? Do I need to run the Proc Freq first to ensure the frequency of each variable or it does not matter so much?
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.