Learn R Programming

bigPCAcpp (version 0.9.0)

pca_supplementary_variables: Supplementary variable diagnostics

Description

Compute loadings, correlations, contributions, and cos^2 values for supplementary variables (columns) given component scores for the active individuals.

Usage

pca_supplementary_variables(data, scores, sdev, center = NULL)

Value

A list with elements loadings, correlations, contributions, and cos2.

Arguments

data

Matrix-like object whose columns correspond to supplementary variables measured on the active individuals.

scores

Numeric matrix of component scores for the active individuals.

sdev

Numeric vector of component standard deviations associated with scores.

center

Optional numeric vector specifying the centring to apply to each supplementary variable. When NULL, column means of data are used.