BookmarkSubscribeRSS Feed
SAScph
Fluorite | Level 6

Hi 

Is there anyway to change the criterias for the fit diagnostic plots? the rstudent is e.g sat to 2, but i would like it to be 3.

 

1 REPLY 1
Rick_SAS
SAS Super FREQ

You didn't specify the procedure, but I assume you are talking about PROC REG.

The easiest way is to output the RStudent and Predicted values and add the reference lines where you want them:

 

proc reg data=sashelp.cars plots=none;
model MPG_City = weight engineSize;
output out=RegOut rstudent=RStudent pred=Pred;
quit;

proc sgplot data=RegOut;
scatter x=Pred y=RStudent;
refline -3 3 / axis=Y;
yaxis grid values=(-3 to 12 by 3);
xaxis grid;
run;

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 528 views
  • 0 likes
  • 2 in conversation