BookmarkSubscribeRSS Feed
dal233
Calcite | Level 5

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?


5 REPLIES 5
PGStats
Opal | Level 21

Try PLOTS=RESDEV

PG
Reeza
Super User

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





dal233
Calcite | Level 5

Yes, all I can see is RESDEV too.

stat_sas
Ammonite | Level 13

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;

Rick_SAS
SAS Super FREQ

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

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!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 5 replies
  • 1543 views
  • 6 likes
  • 5 in conversation