Learn R Programming

simsem (version 0.2-8)

SimParam-class: Class "SimParam"

Description

Set of vectors and matrices that saves free parameters (CFA, Path analysis, or SEM)

Arguments

Objects from the Class

Object can be created by simParamCFA, simParamPath, or simParamSEM, for CFA, Path analysis, or SEM model, respectively. Objects can be also created by calls of the form new("SimParam", ...).

See Also

Examples

Run this code
showClass("SimParam")

library(lavaan)
loading <- matrix(0, 9, 3)
loading[1:3, 1] <- NA
loading[4:6, 2] <- NA
loading[7:9, 3] <- NA
HS.Model <- simParamCFA(LX = loading)
summary(HS.Model)
SimModel <- simModel(HS.Model, indLab=paste("x", 1:9, sep=""))
out <- run(SimModel, HolzingerSwineford1939)
summary(out)

HS.Model2 <- extract(HS.Model, y=1:3)
summary(HS.Model2)

Run the code above in your browser using DataLab