efasummariser: efasummariser

Description Usage Arguments Value Examples

View source: R/efasummariser.R

Description

This function produces a dataframe with loadings and communalities for EFA produced using the psych package. It can handle multiple EFA results from different samples, binding them together. This function should be used either with a single EFA or with EFAs on the same variables but with different samples.

Usage

1
efasummariser(threshold = 0, ...)

Arguments

threshold

The threshold cutoff for showing factor loadings.

...

Dataframe of EFA loadings and communalities from all input EFAs

Value

A dataframe of EFA loadings and communalities with loadings lower than the threshold hidden

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
setosa <- psych::fa(iris %>%
  filter(Species == "setosa") %>%
  select_if(is.numeric),
fm = "gls"
)

versicolor <- psych::fa(iris %>%
  filter(Species == "versicolor") %>%
  select_if(is.numeric),
fm = "gls"
)

efa_loadings(threshold = 0.3, setosa, versicolor)

MarvinLawPhD/datasummariser documentation built on Aug. 11, 2020, 6:25 p.m.