extract_mplus_loadings: Extract standardized loadings from MplusAutomation output

View source: R/align_loadings.R

extract_mplus_loadingsR Documentation

Extract standardized loadings from MplusAutomation output

Description

Convenience helper for use as the target of align_loadings(): pulls the STDYX-standardized loadings from a MplusAutomation::readModels() result and returns one matrix per group, in items-by-factors form with names matching common conventions.

Usage

extract_mplus_loadings(
  mp_out,
  standardized = "stdyx.standardized",
  items = NULL,
  factors = NULL
)

Arguments

mp_out

An object returned by MplusAutomation::readModels().

standardized

Which Mplus section to read. Default "stdyx.standardized"; set to "unstandardized" to read raw point estimates (note: comparison with lavaan's parameterEstimates() is not meaningful for ESEM efa() blocks because lavaan reports the unrotated optimization basis).

items

Optional character vector. If supplied, the returned matrices use this row order; otherwise the order from Mplus is used.

factors

Optional character vector. If supplied, the returned matrices use this column order.

Value

A named list of matrices, one per group, each with rownames (items) and colnames (factors).


bifactory documentation built on Oct. 28, 2026, 1:06 a.m.