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

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 315 views
  • 0 likes
  • 2 in conversation