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 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.
Yes, its was the COVARIATES dataset I meant. Thanks for the help.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.