Hi,
I am working on a 1:2 matched case-control study with 20 cases and 40 controls. They were matched based on age +/- 5 years, gender, race and cancer type. We would like to compare the survival rate from the date of receiving new treatment (time 0) until the time of death or last follow up date and evaluate whether infection and smoking status would be assoicated with survival. Could anyone please verify whether my code below is correct?
proc phreg data=test;
strata Matching_ID;
class group infection smoking;
model time*event(0) = group infection smoking /risklimits ;
run;
"Matching_ID" stands for the matching group ID number. In our study, there are 3 subjects coded per matching_ID (1 case + 2 matched controls)
"time" stands for the "duration from the date of receiving new treatment to endpoint death or alive on the last follow-up date"
"event" stands for "death or alive", coded as (1,0)
"group" stands for "cases or controls", coded as (1, 0)
"infection" stands for whether they had infection or not, coded as (1,0)
"smoking" stands for whether they had smoking or not, coded as (1,0)
Thanks in advance!
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!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.