
Get Eigenvalues
Source:R/AllGenerics.R, R/get_distances.R, R/get_eigenvalues.R, and 2 more
get_eigenvalues.RdGet Eigenvalues
Usage
get_eigenvalues(x)
get_variance(x, ...)
get_distances(x, ...)
get_inertia(x, ...)
# S4 method for class 'MultivariateAnalysis'
get_distances(x, margin = 1)
# S4 method for class 'MultivariateAnalysis'
get_eigenvalues(x)
# S4 method for class 'PCOA'
get_eigenvalues(x)
# S4 method for class 'MultivariateAnalysis'
get_inertia(x, margin = 1)
# S4 method for class 'MultivariateAnalysis'
get_variance(x, digits = 2)Arguments
- x
An object from which to get element(s) (a
CA,MCAorPCAobject).- ...
Currently not used.
- margin
A length-one
numericvector giving the subscript which the data will be returned:1indicates individuals/rows (the default),2indicates variables/columns.- digits
An
integerindicating the number of decimal places to be used.
Value
get_eigenvalues()returns adata.framewith the following columns:eigenvalues,variance(percentage of variance) andcumulative(cumulative percentage of variance).get_variance()returns anumericvector giving the amount of variance explained by each (principal) component.get_distance()returns anumericvector of squared distance to the centroid.get_inertia()returns anumericvector giving the inertia (weighted squared distance to the centroid).
See also
Other getters:
export(),
get_contributions(),
get_coordinates(),
get_data()