SAS Programming

DATA Step, Macro, Functions and more
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-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!

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
  • 6914 views
  • 5 likes
  • 3 in conversation