Programming the statistical procedures from SAS

DevianceResidualPlot

Reply
Occasional Contributor
Posts: 13

DevianceResidualPlot

I would like to use proc genmod to output DevianceResidualPlot as outlined here:

http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_genmod_sect0...

I start by writing:

ods graphics on;

proc genmod data=train plots=DevianceResidualPlot;

etc. etc.

But I get an error like this:

ERROR 22-322: Syntax error, expecting one of
  the following: (, ALL, CLEVERAGE, CLUSTERCOOKSD, CLUSTERDFIT, COOKSD, DCLS,
  DFBETA,
              DFBETAC, DFBETACS, DFBETAS,
  DOBS, LEVERAGE, MCLS, NONE, PREDICTED, PZERO, RESCHI, RESDEV, RESLIK, RESRAW,
  STDRESCHI,
              STDRESDEV.
ERROR
  76-322: Syntax error, statement will be ignored.

So the option I want doens't seem to be loaded.  How come?


Respected Advisor
Posts: 4,606

Re: DevianceResidualPlot

Try PLOTS=RESDEV

PG
Grand Advisor
Posts: 16,875

Re: DevianceResidualPlot

DevianceResidualPlot isn't on the list of plots in SAS 9.3 for PROC GENMOD, perhaps it is in 9.4?

In 9.3 the closest that I see is RESDEV





Occasional Contributor
Posts: 13

Re: DevianceResidualPlot

Yes, all I can see is RESDEV too.

Trusted Advisor
Posts: 1,195

Re: DevianceResidualPlot

RESDEV will be used to get DevianceResidualPlot graph. To validate this add ods trace on in syntax.You will see output added to DevianceResidualPlot.

ods graphics on;

ods trace on;

proc genmod data=train plots=RESDEV;

SAS Super FREQ
Posts: 3,306

Re: DevianceResidualPlot

You have specified the name of the ODS graphic. Instead, you should specify the option in the SAS grammar.

Ask a Question
Discussion stats
  • 5 replies
  • 227 views
  • 6 likes
  • 5 in conversation