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.
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.
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!
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.