renormInertiaExPo: Renorm the output of an 'ExPosition analysis'.

View source: R/RenormInertiaExpo.R

renormInertiaExPoR Documentation

Renorm the output of an ExPosition analysis.

Description

renormInertiaExPo: renorms the output of an ExPosition function (e.g., epCA, epPCA, epMCA) to a given constant. After normalization, all the objects whose inertia depends upon the data will now have their inertia equal to the new specified inertia.

The normalization constant can be a scalar, or can be the output of a previous ExPosition analysis, in this last case the inertia is the inertia of the table used in this previous analysis.

Usage

renormInertiaExPo(resExpo, newNorm = NULL)

Arguments

resExpo

the output of an nExPosition function (e.g., epCA, epPCA, epMCA).

newNorm

The new norm (Default: NULL), if NULL the results are normed to a value of 1, if newNorm is a scalar, the data will be nromed

Details

All the dataframes in resExpo whose norm depends upon the data (i.e., fi, fj, di, dj, pdq$Dv, pdq$Dd, eigs) are renormed in the output.

Value

The renormed ExPosition output.

Author(s)

Hervé Abdi

See Also

firstpos, firstpos4ExPo

Examples

## Not run: 
data("mtcars") # use the mtcars data set 
resPCA.normed  <- renormInertiaExPo(epPCA(mtcars, graphs = FALSE), ncol(mtcars))

## End(Not run)

HerveAbdi/data4PCCAR documentation built on Sept. 11, 2022, 4:19 p.m.