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

Description Usage Arguments Value Examples

View source: R/extractMatrices.R

Description

This function extracts RAM matrices from a lavaan object.

Usage

1

Arguments

model

Lavaan model object.

Value

The RAM matrices from model.

Examples

1
2
3
4
5
6
7
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)

regsem documentation built on March 18, 2018, 2:12 p.m.