get_std_loadings: Standardized factor loadings matrix

View source: R/k_efa.R

get_std_loadingsR Documentation

Standardized factor loadings matrix

Description

Extract standardized factor loadings from lavaan object

Usage

get_std_loadings(object, type = "std.all", df = FALSE)

Arguments

object

a lavaan object

type

standardize on the latent variables ("std.lv"), latent and observed variables ("std.all", default), or latent and observed variables but not exogenous variables ("std.nox")? See standardizedSolution.

df

should loadings be returned as a matrix (default) or data.frame?

Value

A matrix or data.frame of factor loadings

Examples

data(HolzingerSwineford1939, package = "lavaan")
HS.model <- ' visual  =~ x1 + x2 + x3
              textual =~ x4 + x5 + x6
              speed   =~ x7 + x8 + x9 '

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


kfa documentation built on July 9, 2023, 5:44 p.m.