Learn R Programming

dimensio (version 0.9.0)

PCA-class: PCA Results

Description

An S4 class to store the results of a principal components analysis.

Arguments

Slots

center

A numeric vector giving the column mean of the initial dataset (active individuals only).

scale

A numeric vector giving the column standard deviations of the initial dataset (active individuals only).

Author

N. Frerebeau

See Also

Other class: BootstrapCA-class, BootstrapPCA-class, CA-class, MCA-class, MultivariateAnalysis, MultivariateBootstrap, MultivariateResults, MultivariateSummary, PCOA-class

Examples

Run this code
## Load data
data("iris")

## Compute principal components analysis
X <- pca(iris)

## Get eigenvalues
get_eigenvalues(X)

## Get individual cos2
head(get_cos2(X, margin = 1))

## Get variable contributions
get_contributions(X, margin = 2)

## Get correlations between variables and dimensions
get_correlations(X)

Run the code above in your browser using DataLab