View source: R/booted_eigenvalues.R
booted_eigenvalues | R Documentation |
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.
booted_eigenvalues( df, iterations = 1000, cor = "pearson", fa = "pc", fm = "minres" )
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 |
A boot object (boot::boot()
),
that contains SE for all Eigenvalues in DF, can be passed to getCIs
to create Confidence Intervals
Bjoern Buedenbender
boot
, fa
,
getCIs
add_ci_2plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.