SimMatrix
or SimVector
object that specifies
bind(free = NULL, popParam = NULL, misspec = NULL, symmetric = FALSE)
binds(free = NULL, popParam = NULL, misspec = NULL, symmetric = TRUE)
NA
, and can be fixed by settinTRUE
if the matrix created is symmetric (RPS/PS, RTE/TE). The function binds
can also be used, which defaults to symmetric = TRUE
SimMatrix
or SimVector
object that used for model specification for analysis and data generation in simsem.model
bind
-> model
-> sim
workflow of simsem, and this document outlines the user interface or language used to describe these simulations. This interface, while complex, enables a wide array of simulation specifications for structural equation models by building on LISREL-style parameter specifications.
In simulations supported by simsem, a given parameter may be either fixed or freed for analysis, but may optionally also have a population value or distribution for data generation, or a value or distribution of misspecification. The purpose of bind is to stack these multiple meanings of a parameter into an object recognized by simsem, a SimMatrix
. Each matrix in the Lisrel notation (e.g. LY, PS, TE, BE) becomes a SimMatrix
, and is passed to the function model
, which builds the data generation template and an analysis template (a lavaan parameter table), collectively forming a SimSem
object, which can be passed to the function sim
for simulation.model
To combine simMatrix objects into a complete data analysis and data generation template, which is aSimSem
objectgenerate
To generate data using the simsem template.
analyze
To analyze real or generated data using the simsem template.