Pearson_residuals_rxc {contingencytables}R Documentation

The Pearson residuals and the standardized Pearson residuals

Description

The Pearson residuals and the standardized Pearson residuals

Described in Chapter 7 "The rxc Table"

Usage

Pearson_residuals_rxc(n)

Arguments

n

the observed counts (an rxc matrix)

Value

An object of the contingencytables_result class, basically a subclass of base::list(). Use the utils::str() function to see the specific elements returned.

Examples

## Treatment for ear infection (van Balen et al., 2003):
Pearson_residuals_rxc(table_7.3)

## Psychiatric diagnoses vs PA (Mangerud et al., 2004):
Pearson_residuals_rxc(table_7.4)

## Psychiatric diag. vs BMI (Mangerud et al., 2004):
Pearson_residuals_rxc(table_7.5)

[Package contingencytables version 3.0.0 Index]