BookmarkSubscribeRSS Feed
Denali
Quartz | Level 8

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!

 

1 REPLY 1
OsoGris
SAS Employee
See Example 89.5 Conditional Logistic Regression for m:n Matching<> in the PHREG documentation.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is ANOVA?

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.

Discussion stats
  • 1 reply
  • 773 views
  • 0 likes
  • 2 in conversation