BookmarkSubscribeRSS Feed
shutfle1
Calcite | Level 5

I am using a selection procedure within hplogistic on partitioned data.  I have set the entry to .001 and the stay to 0.01 and choose=validate.  However, I get some variables (that were not forced in) that have p>0.01.  Why is this happening?

 

PROC HPlogistic DATA=inpatient_outcomes;
PARTITION ROLEVAR = PART(TRAIN="1" VALIDATE="0");
model outcome (event='1')= var1 var2.....var30/ include=4;

SELECTION METHOD=stepwise (CHOOSE=VALIDATE sle=0.001 sls=0.01);
run;

2 REPLIES 2
Ksharp
Super User

Don't use STEPWISE selection . That would get you bigger Type I ERROR.

Try LASSO or ADPTIVE  via  PROC HPGENSELECT .

StatDave
SAS Super FREQ

This can happen because a step in the selection process consists of adding or dropping a single variable. Note that if a variable is added it is entirely possible that one or more of the other variables could have their p-values change to be larger than the SLS= criterion. Since the models at all of the steps are evaluated by the CHOOSE= criterion and one is selected as the final model, that model could be one where one or more of its variables has p-values greater than the SLS= criterion. If you want to ensure that this doesn't happen, you need to remove the CHOOSE= option so that the model in the last step is chosen. 

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

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
  • 2 replies
  • 1016 views
  • 2 likes
  • 3 in conversation