Learn R Programming

wsMed (version 1.0.2)

StdLav2: Standardize Parameter Estimates in a Lavaan Model

Description

Applies full standardization (including intercepts) to a fitted lavaan model by converting to RAM form, performing standardization, and converting back to lavaan matrix structure.

Usage

StdLav2(est, object)

Value

A numeric vector of fully standardized parameter estimates (including intercepts and defined parameters).

Arguments

est

A numeric vector of parameter estimates (free parameters).

object

A fitted lavaan model object (used to extract model structure).

Details

The function extracts the model's RAM representation via Lav2RAM2, applies StdRAM2 standardization, restores the standardized GLIST via RAM2Lav2, and retrieves standardized user-defined parameter estimates with lav_model_get_parameters().