BookmarkSubscribeRSS Feed
deleted_user
Not applicable
When I run this program in SAS 9.1.3, I get a file named ods_student with the Studentized residuals - which is what I want! If I run it in SAS 9.2 the file is not created and no error message appears from which I can try to find out what I am doing wrong. Can someone tell me how can I get the Studentized residuals?

Thank you

options pagesize=60 linesize=85 pageno=1 nolabel;
libname SAFMODBD 'D:\HOME\ENSINO\SAFMOD\dados\SAFMOD_data.mdb';
data basededados; set SAFMODBD.Ec_w;
y=Ww;
proc means noprint;run;quit;
ODS HTML;
ODS LISTING CLOSE;
ODS TRACE ON;
ODS GRAPHICS ON;
ODS OUTPUT StudentResidualPlot=ods_student;
proc model DATA=basededados;
parms aw=0.01 bw=0.01 cw=0.01;
y=aw*(G**bw)*(hdom**cw);
fit y / out=regsai outest=parm ;
outvars N ;
run; quit;
ODS OUTPUT CLOSE;
ODS GRAPHICS OFF;
ODS TRACE OFF;
ODS HTML CLOSE;
ODS LISTING;
4 REPLIES 4
DanH_sas
SAS Super FREQ
On the PROC MODEL statement, you may need to specify PLOTS=STUDENTRESIDUAL. Check out the PLOTS option to see what plots are available to you.

Thanks!
Dan
deleted_user
Not applicable
Yes, if I write

proc model DATA=dados PLOTS (only)=(STUDENTRESIDUAL);

I get the plot in the results, by not the file with the residuals. The only message I get is this one:

WARNING: Output 'STUDENTRESIDUAL' was not created. Make sure that the output object
name, label, or path is spelled correctly. Also, verify that the
appropriate procedure options are used to produce the requested output
object. For example, verify that the NOPRINT option is not used.

When I write:

ODS OUTPUT ParameterEstimates=ods_student;

I get the ods_student file whith the parameter estimates, so the problem is really what to write to get the studentized residuals...
kessler
SAS Employee
I beleive you'll need to set the global plot option 'unpackpanel' to enable both the plot and data set creation:

proc model DATA=basededados plots(unpackpanel)=studentresidual;
parms aw=0.01 bw=0.01 cw=0.01;
y=aw*(G**bw)*(hdom**cw);
fit y / out=regsai outest=parm ;
outvars N ;
run; quit;
deleted_user
Not applicable
Thank you so much, it worked! 🙂

Tânia

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!

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
  • 4 replies
  • 815 views
  • 0 likes
  • 3 in conversation