BookmarkSubscribeRSS Feed
joesmama
Obsidian | Level 7

Hello,

When using PROC PHREG, 

 

If my model is made up of entirely categorical variables and each of those variables is put in the class statement with a reference group, do I still need to use the BASELINE option to define the reference group for the model? Or is this redundant? 

 

proc phreg data=grands plots=survival;

class grade(ref="Grade 1")  gender(ref="Male") marst(ref="Married") stage(ref="Stage 1");
model survivem*cs_vital(0) = grade gender marst;
by stage;
run;

 

 

Thank you.  

2 REPLIES 2
Reeza
Super User

@joesmama wrote:

do I still need to use the BASELINE option to define the reference group for the model? Or is this redundant? 

That's not what the baseline statement does. 

The BASELINE statement creates a SAS data set (named by the OUT= option) that contains the baseline function estimates at the event times of each stratum for every set of covariates in the COVARIATES= data set. 

The default reference values are used if not specified elsewhere, if that's what you're asking.

 


@joesmama wrote:

Hello,

When using PROC PHREG, 

 

If my model is made up of entirely categorical variables and each of those variables is put in the class statement with a reference group, do I still need to use the BASELINE option to define the reference group for the model? Or is this redundant? 

 

proc phreg data=grands plots=survival;

class grade(ref="Grade 1")  gender(ref="Male") marst(ref="Married") stage(ref="Stage 1");
model survivem*cs_vital(0) = grade gender marst;
by stage;
run;

 

 

Thank you.  


 

joesmama
Obsidian | Level 7

Yes, its was the COVARIATES dataset I meant. Thanks for the help.

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
  • 2 replies
  • 984 views
  • 0 likes
  • 2 in conversation