Learn R Programming

simsem (version 0.2-8)

SimVector-class: Vector object: Random parameters vector

Description

This object can be used to represent a vector in SEM model. It contains free parameters, fixed values, and starting values. This object can be represented mean, intercept, or variance vectors.

Arguments

Objects from the Class

This object is created by simVector function. Objects can be created by calls of the form new("SimVector", ...).

See Also

SimMatrix for random parameter matrix and SymMatrix for random parameter symmetric matrix.

Examples

Run this code
showClass("SimVector")

factor.mean <- rep(NA, 2)
factor.mean.starting <- c(5, 2)
AL <- simVector(factor.mean, factor.mean.starting)
run(AL)
summary(AL)
summaryShort(AL)

n01 <- simNorm(0, 1)
AL <- adjust(AL, "n01", 2)
run(AL)
summary(AL)

AL <- extract(AL, 1)
summary(AL)

Run the code above in your browser using DataLab