get_std_pearson_res {MDDC} | R Documentation |
Computing the standardized Pearson residuals for a given
I \times J
contingency table
Description
Compute the standardized Pearson residuals for a given
I \times J
contingency table.
Usage
get_std_pearson_res(contin_table)
Arguments
contin_table |
A matrix of an |
Value
A matrix of the standardized Pearson residuals of the input contingency table.
Examples
# Create a 6 by 4 data matrix
set.seed(42)
dat_mat <- matrix(rpois(6 * 4, 20), nrow = 6)
dat_mat
# Check the format of the data matrix and assign row and column names
# to the data matrix
contin_table <- check_and_fix_contin_table(dat_mat)
contin_table
# Compute the standardized Pearson residuals
get_std_pearson_res(contin_table)
[Package MDDC version 1.1.0 Index]