Data visualization with SAS programming

SAS 9.2 ODS OUTPUT

Reply
N/A
Posts: 0

SAS 9.2 ODS OUTPUT

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;
SAS Super FREQ
Posts: 864

Re: SAS 9.2 ODS OUTPUT

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
N/A
Posts: 0

Re: SAS 9.2 ODS OUTPUT

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...
SAS Employee
Posts: 25

Re: SAS 9.2 ODS OUTPUT

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;
N/A
Posts: 0

Re: SAS 9.2 ODS OUTPUT

Thank you so much, it worked! Smiley Happy

Tânia
Post a Question
Discussion Stats
  • 4 replies
  • 127 views
  • 0 likes
  • 3 in conversation