parallelAnalysis | R Documentation |
Performs a parallel analysis for the variables (usually items) in a data frame.
parallelAnalysis(
x,
fm = "ml",
cor = "cor",
n.factors = NULL,
sim = TRUE,
onlyFA = FALSE
)
x |
a data frame containing the variables (items) to be analyzed |
fm |
string specifying the factoring method ("ml", "minres", ...) |
cor |
string specifying how the correlations are found: "cor" (correlation), "cov" (covariance), "tet" (tetrachoric correlation), "poly" (polychoric correlation) |
n.factors |
integer specifying the number of factors to plot; if NULL plot all factors |
sim |
logical; if TRUE, sample from normal distribution, otherwise resample from the data |
onlyFA |
logical; if TRUE, show only factor analysis results, if FALSE show also results from principal components |
a ggplot2 object
Computation: William Revelle, see psych
, specifically fa.parallel
.
Plot: Michael Hock, michael.hock@uni-bamberg.de
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.