Learn R Programming

wsMed (version 1.0.2)

Lav2RAM2: Convert Lavaan Model to RAM Matrices

Description

Converts a lavaan-style matrix list into RAM (Reticular Action Model) format, including the A (asymmetric paths), S (symmetric paths), F (filter matrix), and M (means/intercepts) matrices.

Usage

Lav2RAM2(lav_mod)

Value

A list with components:

A

Asymmetric path matrix (including factor loadings and structural paths)

S

Symmetric path matrix (variances and covariances)

F

Filter matrix mapping latent and observed variables

M

Row vector of intercepts/means

Arguments

lav_mod

A named list of lavaan matrices including lambda, beta, theta, psi, and alpha.

Details

This function reorganizes the lavaan-style matrices into the RAM representation, commonly used for model standardization and transformation.