parallelAnalysis: Parallel analysis

View source: R/itemanalysis.R

parallelAnalysisR Documentation

Parallel analysis

Description

Performs a parallel analysis for the variables (usually items) in a data frame.

Usage

parallelAnalysis(
  x,
  fm = "ml",
  cor = "cor",
  n.factors = NULL,
  sim = TRUE,
  onlyFA = FALSE
)

Arguments

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

Value

a ggplot2 object

Author(s)

Computation: William Revelle, see psych, specifically fa.parallel.

Plot: Michael Hock, michael.hock@uni-bamberg.de


mihock/iana documentation built on Jan. 14, 2024, 8:58 p.m.