View source: R/extractMatrices.R
extractMatrices | R Documentation |
This function extracts RAM matrices from a lavaan object.
extractMatrices(model)
model |
Lavaan model object. |
The RAM matrices from model
.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.