Learn R Programming

kfa (version 0.2.2)

get_std_loadings: Standardized factor loadings matrix

Description

Extract standardized factor loadings from lavaan object

Usage

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

Value

A matrix or data.frame of factor loadings

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?

Examples

Run this code
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)

Run the code above in your browser using DataLab