[R] chisq.test(): standardized (adjusted) Pearson residuals

Stephen Davies stephen at umw.edu
Fri Aug 19 19:28:23 CEST 2011


I'm using chisq.test() on a matrix of categorical data, and I see that the
"residuals" attribute of the returned object will give me the Pearson residuals.
That's cool. However, what I'd really like is the standardized (adjusted)
Pearson residuals, which have a N(0,1) distribution. Is there a way to do that
in R (other than by me programming it myself?)



More information about the R-help mailing list