Statistical Procedures

Programming the statistical procedures from SAS
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-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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
  • 1268 views
  • 1 like
  • 2 in conversation