comp_std_residuals: Compute Standard Residuals

Description Usage Arguments Details Value

View source: R/CA.R

Description

'comp_std_residuals' computes the standard Residuals matrix S, which is the basis for correspondence analysis and serves as input for singular value decomposition.

Usage

1

Arguments

mat

A numerical matrix or coercible to one by 'as.matrix()'. Should have row and column names.

Details

Calculates standardized residual matrix S from the proportions matrix P and the expected values E according to S = \frac{(P-E)}{sqrt(E)}.

Value

A named list with standard residual matrix "S", grand total of the original matrix "tot" as well as row and column masses "rowm" and "colm" respectively.


elagralinska/APLpackage documentation built on Dec. 20, 2021, 4:15 a.m.