BookmarkSubscribeRSS Feed
Najmeh
Calcite | Level 5
I modeled a NB regression as below

proc genmod data=Crash; class ID year;
model accident= major minor/dist=nb link=log
type3 wald; repeated subject=ID;

run; quit;

the result shows Z test even that I said wald and no overdispersion is shown. If I remove "repeated subject=ID" then it shows wald chi square test and the overdispersion.
Is there any way I can get chi square test result and over dispersion? ( I don't even need it to be wald, even If I don't type wald it still shows me wald chi square)

Thanks
1 REPLY 1
StatDave
SAS Super FREQ

The WALD option in the MODEL statement causes the tests produced by the TYPE3 option to be Wald tests instead of the default score tests.  The WALD option has no effect on the tests in the GEE parameter estimates table which are always Z statistics, which are just the square root of the Wald statistic and has the same p-value.  The table that gives the Pearson and deviance statistics does not apply to GEE models since it is not a likelihood-based method.  The table is printed if you specify the PRINTMLE option in the REPEATED statement, but those statistics apply only to an initial model that is fitted by maximum likelihood to provide starting values for the GEE estimation method.  The GEE method always includes a dispersion parameter that is used in the computation of the working correlation matrix.  See "Generalized Estimating Equations" in the Details section of the GENMOD documentation.

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
  • 1 reply
  • 1234 views
  • 0 likes
  • 2 in conversation