Skip to contents

Uses boot to bootstrap Eigenvalues in factor analyses.
Eigenvalues can be extracted for PCA as well as EFA
Different Factor Methods are available for more details, see fa Allows for extraction of Eigenvalues based on Pearson as well as polychoric correlation matrices. These bootstrapped Eigenvalues can serve as a foundation to construct a scree plot with confidence intervals around the observed eigenvalues.

Usage

booted_eigenvalues(
  df,
  iterations = 1000,
  cor = "pearson",
  fa = "pc",
  fm = "minres"
)

Arguments

df

A data.frame

iterations

number of resamples for the bootstrap

cor

either "pearson" or "poly" for polychoric correlations, defaults to "pearson"

fa

either "pc" for prinicipal component or "fa" for [common] factor analysis, defaults to "pc"

fm

factor method to use, irrelevant for pca. For available factor methods check psych::fa for more details, defaults to minres

Value

A boot object (boot::boot()), that contains SE for all Eigenvalues in DF, can be passed to getCIs to create Confidence Intervals

See also

Author

Bjoern Buedenbender