
Get Contributions
Source:R/AllGenerics.R, R/get_contributions.R, R/get_correlations.R, and 1 more
get_contributions.RdGet Contributions
Usage
get_contributions(x, ...)
get_correlations(x, ...)
get_cos2(x, ...)
# S4 method for class 'MultivariateAnalysis'
get_contributions(x, margin = 1)
# S4 method for class 'PCA'
get_correlations(x, sup_name = ".sup")
# S4 method for class 'MultivariateAnalysis'
get_cos2(x, margin = 1, sup_name = ".sup")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.- sup_name
A
characterstring specifying the name of the column to create for supplementary points attribution (see below).
Value
get_contributions()returns adata.frameof contributions to the definition of the principal dimensions.get_correlations()returns adata.frameof correlations between variables and dimensions. An extra column (named aftersup_name) is added specifying whether an observation is a supplementary point or not.get_cos2()returns adata.frameof \(cos^2\) values (i.e. quality of the representation of the points on the factor map). An extra column (named aftersup_name) is added specifying whether an observation is a supplementary point or not.
See also
Other getters:
export(),
get_coordinates(),
get_data(),
get_eigenvalues()