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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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