Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cube-residuals

Calculate standardized residuals from a CrunchCube


Description

Standardized residuals, (observed - expected) / sqrt(V), where V is the residual cell variance (Agresti, 2007, section 2.4.5). Special care is taken for multiple-response variables which are in effect a series of separate tables where ‘not selected’ cells for each item are are hidden.

Usage

zScores(x)

## S4 method for signature 'CrunchCube'
zScores(x)

rstandard(model)

Arguments

x

A CrunchCube representing a contingency table

model

A CrunchCube representing a contingency table (for rstandard() only)

Value

an array of standardized residuals or Z-scores from the hypothesis being tested. The default method is that the joint distributions of (weighted) counts are equal to the marginal distributions of the table.

References

Agresti, A. (2007) An Introduction to Categorical Data Analysis, 2nd ed., New York: John Wiley & Sons. Page 38.

See Also


crunch

Crunch.io Data Tools

v1.28.0
LGPL (>= 3)
Authors
Greg Freedman Ellis [aut, cre], Jonathan Keane [aut], Mike Malecki [aut], Neal Richardson [aut], Gordon Shotwell [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.