BookmarkSubscribeRSS Feed
DavidsM
Calcite | Level 5

 

Hello our esteemed advisers,

 

 

I am trying to select a parsimonious model from my predictors using Fine and Gray model and saving the output data. The problem is that SAS is telling me that the selection procedure is ignored and the time variable is excluded from the output data and I want to use the time variable in that output data set.

 

 

Below is the code am trying

 

proc phreg data=Disease plots(overlay)=cif;
class Group BMI (ref='1') Smoking (ref='1') Alcohol (ref='1') Exercise (ref='1')  DB (ref='1')
model Time*Status(0)=BMI Smoking Alcohol Exercise HTN DB / eventcode=1;

Selection=Backward Slstay=0.05 details;
baseline covariates=Predictors out=Out1 cif=_all_ timelist=6 9;
run;

 

 

I will be glad to be advised. 

3 REPLIES 3
Reeza
Super User
Can you post the log as well, including the portions where it says time is excluded.
DavidsM
Calcite | Level 5

 

This is the  log file from the code I tried. The variable Time is the follow up time but its excluded from the output data created and selection procedure is ignored.

 

Below is the log file.

 

 

NOTE: The SELECTION= option (MODEL statement) is ignored for the Fine and Gray competing-risks analysis.
NOTE: SLSTAY= is ignored since SELECTION=NONE.
NOTE: DETAILS is ignored since SELECTION=NONE.
NOTE: Data for variable Time in the COVARIATES= data set are not copied to the OUT= data set in the BASELINE
statement.

 

 

Reeza
Super User
I suspect it's not implemented then, or at least not in the version you're using. I can't find any exclusions noted on the STAT 15.1 docs. I'm assuming your code as posted isn't correct, because you have the selection after the semicolon, not before. I've moved your question to the Stats forum so someone with more helpful answers can hopefully chime in.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

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
  • 3 replies
  • 1073 views
  • 1 like
  • 2 in conversation