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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

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