| interpret | R Documentation |
One table to read the axes of a factorial analysis, whatever the analysis:
a multiple correspondence analysis: per axis, the active levels contributing more than the mean contribution, the positive side facing the negative one, and the spread between the two sides in percent of each question's contribution (Brigitte Le Roux and Henri Rouanet, Geometric data analysis, Kluwer, 2004; Brigitte Le Roux, Analyse geometrique des donnees multidimensionnelles, Dunod, 2014);
a correspondence analysis: the same for the row points and the column points, each margin against its own mean contribution, since each sums to 100 different number of points;
a principal component analysis: each active variable's mean and spread, then, per axis, its coordinate — which under 'scale.unit' IS its correlation with the axis —, its contribution and its cos2.
The eigenvalues of the axes travel under the table, with Benzecri's modified rate for an MCA. 'mca_interpret()' and 'pca_interpret()' are the same tables, for one analysis each.
interpret(res, ...)
mca_interpret(
res.mca,
axes = 1:5,
complete = FALSE,
min_contrib = NULL,
color = TRUE,
eig = TRUE,
n_axes = 8L,
lang = NULL,
type = NULL,
spread = NULL
)
pca_interpret(
res.pca,
axes = 1:3,
color = TRUE,
eig = TRUE,
n_axes = 8L,
lang = NULL
)
res |
An analysis made with |
... |
The arguments below. A correspondence analysis takes one more, 'vars': the two
margins' names, as in 'vars = c("CSER", "PR2017")'. By default, the names
|
res.mca, res.pca |
The analysis, for 'mca_interpret()' and 'pca_interpret()'. |
axes |
The axes to interpret, as an integer vector. By default, the first five of an MCA, two of a CA, three of a PCA. |
complete |
For an MCA or a CA, set to |
min_contrib |
For an MCA or a CA, the contribution threshold, in percent. |
color |
Set to |
eig |
The eigenvalues travel under the table. Set to |
n_axes |
How many axes the eigenvalue table prints. When some are left out, an ellipsis row states how many the cloud has. |
lang |
|
type |
Deprecated. The output format is now |
spread |
Deprecated. Folded into |
A tabxplor table — see [ggfacto_summary] for how it prints.
[ggfacto_summary], [benzecri_mrv()].
# ONE option decides how every tabxplor table prints, an interpretation table included.
# In a script it goes once, at the top, beside the library() calls.
options(tabxplor.print = "html")
data(tea, package = "FactoMineR")
res.mca <- multiple_correspondence_analysis(tea, 1:18)
interpret(res.mca)
interpret(res.mca, axes = 1:2, complete = TRUE)
# a correspondence analysis draws the STRUCTURE of a crosstab's deviations and says nothing of
# their size, so the crosstab is asked for beside it, never instead of it:
crosstab <- tabxplor::tab(forcats::gss_cat, race, marital)
interpret(correspondence_analysis(crosstab))
tabxplor::tab(forcats::gss_cat, race, marital, pct = "row", color = "contrib", test = TRUE)
cars <- dplyr::rename(mtcars[1:7], weight = wt)
interpret(principal_component_analysis(cars, 1:7))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.