Date: Fri, 17 Oct 2008 09:09:02 -0500
Reply-To: Robin R High <rhigh@UNMC.EDU>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Robin R High <rhigh@UNMC.EDU>
Subject: Re: How to get std residuals of chi-square test?
In-Reply-To: <406d00ec-2b77-4fa8-a88c-5e850bc03a4f@a19g2000pra.googlegroups.com>
Content-Type: text/plain; charset="US-ASCII"
PROC GENMOD easily gives you the chi square residuals and standardized chi
square residuals (among others), where the standardized residual include
the elements of the "hat" matrix (formula is in the GENMOD documentation).
proc genmod data=gg;
class a b ;
model freq = a b /DIST=POISSON LINK=LOG;
OUTPUT OUT=resid predicted=pred resraw=resraw reschi=reschi stdreschi=
stdreschi;
run;
proc print data=resid; run;
run;
The standardized residuals would be exceedingly difficult to compute from
the output of PROC FREQ.
Robin High
UNMC
wwmz <J999yang@GMAIL.COM>
Sent by: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
10/16/2008 07:10 PM
Please respond to
wwmz <J999yang@GMAIL.COM>
To
SAS-L@LISTSERV.UGA.EDU
cc
Subject
How to get std residuals of chi-square test?
i am trying to use proc freq to run a chi-square test for a
contingency table , but i have problem to get the std residuals from
the test. I cannot find any option to do that. Is there any way to get
it using SAS or i have to calculate by myself?
Thanks!