BookmarkSubscribeRSS Feed
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;



I will be glad to be advised. 

Super User
Can you post the log as well, including the portions where it says time is excluded.
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: Data for variable Time in the COVARIATES= data set are not copied to the OUT= data set in the BASELINE



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.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 1 like
  • 2 in conversation