get_eigenvalues: Get Eigenvalues

get_eigenvaluesR Documentation

Get Eigenvalues

Description

Get Eigenvalues

Usage

get_eigenvalues(x)

get_variance(x, ...)

get_distances(x, ...)

get_inertia(x, ...)

## S4 method for signature 'MultivariateAnalysis'
get_distances(x, margin = 1)

## S4 method for signature 'MultivariateAnalysis'
get_eigenvalues(x)

## S4 method for signature 'PCOA'
get_eigenvalues(x)

## S4 method for signature 'MultivariateAnalysis'
get_inertia(x, margin = 1)

## S4 method for signature 'MultivariateAnalysis'
get_variance(x, digits = 2)

Arguments

x

An object from which to get element(s) (a CA, MCA or PCA object).

...

Currently not used.

margin

A length-one numeric vector giving the subscript which the data will be returned: 1 indicates individuals/rows (the default), 2 indicates variables/columns.

digits

An integer indicating the number of decimal places to be used.

Value

  • get_eigenvalues() returns a data.frame with the following columns: eigenvalues, variance (percentage of variance) and cumulative (cumulative percentage of variance).

  • get_variance() returns a numeric vector giving the amount of variance explained by each (principal) component.

  • get_distance()returns a numeric vector of squared distance to the centroid.

  • get_inertia() returns a numeric vector giving the inertia (weighted squared distance to the centroid).

Author(s)

N. Frerebeau

See Also

Other getters: get_contributions(), get_coordinates(), get_data()


dimensio documentation built on Sept. 11, 2024, 8:35 p.m.