running_cosines: Get running sum of squared cosines from a set of scores

Usage Arguments Value References Examples

View source: R/mvar_utils.R

Usage

1

Arguments

coord

The coordinates from which to compute contributions. We assume coordinates for all dimensions are present.

Value

The sum of squared cosines up to each dimension, for each observation.

References

Abdi and Williams "Principle Component Analysis", equation (11).

Examples

1
2
3
4
data(wine)
wine_mfa <- ordi(wine[, -c(1:2)], "MFA", wine[, 1:2], group = c(5,3,10,9,2), type = rep("s",5), graph = F)
coord <- slot(slot(wine_mfa, "table")$ind, "coord")
running_cosines(coord)

krisrs1128/mvarVis documentation built on Oct. 13, 2019, 11:14 p.m.