Converts a standardized RAM object back to lavaan-style matrix structure.
Optionally ensures correlations for theta and psi matrices.
RAM2Lav2(ram, lav_mod, standardized = FALSE)A modified lavaan-style matrix list with updated lambda, beta, theta, psi, and alpha.
A RAM list containing standardized matrices (A, S, F, and M).
A lavaan-style matrix list (e.g., GLIST) to be updated.
Logical. If TRUE, forces symmetric matrices to correlation form (cov2cor).
This function restores the internal lavaan model matrix structure from a RAM representation.