Get Contributions

## Usage

get_contributions(x, ...)

get_correlations(x, ...)

get_cos2(x, ...)

# S4 method for MultivariateAnalysis
get_contributions(x, margin = 1)

# S4 method for PCA
get_correlations(x, sup_name = ".sup")

# S4 method for MultivariateAnalysis
get_cos2(x, margin = 1, sup_name = ".sup")

## Arguments

x

An object from which to get element(s) (a CA 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.

sup_name

A character string specifying the name of the column to create for supplementary points attribution (see below).

## Value

• get_contributions() returns a data.frame of contributions to the definition of the principal dimensions.

• get_correlations() returns a data.frame of correlations between variables and dimensions (PCA). An extra column (named after sup_name) is added specifying whether an observation is a supplementary point or not.

• get_cos2() returns a data.frame of $$cos^2$$ values (i.e. quality of the representation of the points on the factor map). An extra column (named after sup_name) is added specifying whether an observation is a supplementary point or not.

Other mutators: get_coordinates(), get_data(), get_distances(), get_eigenvalues(), mutators, subset()