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?
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.