BookmarkSubscribeRSS Feed
deleted_user
Not applicable
How may I perform a "leave-one-out" validation with a specified regression model and data set in SAS? This is associated with Weisberg (1985) and the PRESS procedure.
2 REPLIES 2
Olivier
Pyrite | Level 9
Check out the PRESS option, in the MODEL statement of the REG procedure. this is related to creating a dataset with coefficients in it (primarly for use in the Score procedure).
[pre]
PROC REG DATA = sashelp.class OUTEST = work.estimates ;
MODEL weight = height age / PRESS ;
RUN ; QUIT ;
PROC PRINT LABEL NOOBS ;
RUN ;
[/pre]
I don't know if there are equivalents in GLM, LOGISTIC, GENMOD or GLIMMIX procedures (if so, I haven't used them).
MaryA_Marion
Lapis Lazuli | Level 10

Is there a way to print out the individual press residuals?

 

Mary

 

PROC REG DATA = sashelp.class OUTEST = work.estimates ;
MODEL weight = height age / PRESS ;
RUN ; QUIT ;
PROC PRINT LABEL NOOBS ;
RUN ;

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 6500 views
  • 5 likes
  • 3 in conversation