Get Contributions
Source:R/AllGenerics.R
, R/get_contributions.R
, R/get_correlations.R
, and 1 more
get_contributions.Rd
Get 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
,MCA
orPCA
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.- sup_name
A
character
string specifying the name of the column to create for supplementary points attribution (see below).
Value
get_contributions()
returns adata.frame
of contributions to the definition of the principal dimensions.get_correlations()
returns adata.frame
of 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.frame
of \(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()