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: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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