fa_reliability: Calculate reliability from E/CFA

View source: R/fa_reliability.R

fa_reliabilityR Documentation

Calculate reliability from E/CFA

Description

Calculate reliability from E/CFA

Usage

fa_reliability(x, ...)

## S3 method for class 'fa'
fa_reliability(x, keys = NULL, threshold = 0, labels = NULL, ...)

## S3 method for class 'lavaan'
fa_reliability(x, ...)

Arguments

x

E/CFA model (e.g., the result from psych::fa() or lavaan::cfa()).

...

For lavaan objects, arguments passed to semTools::compRelSEM()

keys

optional, see ?psych::make.keys

threshold

which values from the loadings should be used? Only used if keys = NULL.

labels

optional factor labels

Author(s)

Brenton M. Wiernik

Examples


data("Harman74.cor")
EFA <- psych::fa(Harman74.cor$cov, 4)

fa_reliability(EFA)


HS.model <- " visual  =~ x1 + x2 + x3
              textual =~ x4 + x5 + x6
              speed   =~ x7 + x8 + x9 "

CFA <- lavaan::cfa(HS.model, data = lavaan::HolzingerSwineford1939)

fa_reliability(CFA)


mattansb/MSBMisc documentation built on March 22, 2023, 6:02 p.m.