| ctr4Variables | R Documentation |
ExPosition::epMCA).ctr4Variables:
Computes contributions
(or squared cosines) for (qualitatitve) variables
in Multiple Correspondence Analysis (e.g., as performed by
ExPosition::epMCA).
ctr4Variables(ctrJ)
ctrJ |
a matrix or data frame of contributions
or squared cosines
(e.g., from |
In MCA, the contribution (resp. squared cosine) of a variable is the sum of (resp. squared cosine) contributions of all its levels.
ctr4Variables finds the levels of a given variable
by stripping the contribution columns names of their extension
(e.g., toto.1 and toto.2 are two levels
of the qualitative variable toto). This
is performed with the function
tools::file_path_sans_ext.
A qualitative variables by dimensions data frame.
Hervé Abdi
getVarNames
library(ExPosition)
data(mca.wine)
resMCA <- epMCA(mca.wine$data, graphs = FALSE)
contriVar <- ctr4Variables(resMCA$ExPosition.Data$cj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.