Learn R Programming

crunch (version 1.30.4)

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 CrunchCube zScores(x)

rstandard(model)

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.

Arguments

x

A CrunchCube representing a contingency table

model

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

References

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

See Also