extractMatrices: This function extracts RAM matrices from a lavaan object.

View source: R/extractMatrices.R

extractMatricesR Documentation

This function extracts RAM matrices from a lavaan object.

Description

This function extracts RAM matrices from a lavaan object.

Usage

extractMatrices(model)

Arguments

model

Lavaan model object.

Value

The RAM matrices from model.

Examples


library(lavaan)
data(HolzingerSwineford1939)
HS.model <- ' visual =~ x1 + x2 + x3
textual =~ x4 + x5 + x6
speed =~ x7 + x8 + x9 '
mod <- cfa(HS.model, data=HolzingerSwineford1939)
mats = extractMatrices(mod)

Rjacobucci/regsem documentation built on June 3, 2023, 5:20 a.m.