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 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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