Usage
model(LY = NULL, PS = NULL, RPS = NULL, TE = NULL, RTE = NULL, BE = NULL,
VTE = NULL, VY = NULL, VPS = NULL, VE = NULL, TY = NULL, AL = NULL, MY = NULL,
ME = NULL, modelType, indLab = NULL, facLab = NULL, groupLab = "group",
ngroups = 1, con = NULL)
model.cfa(LY = NULL,PS = NULL,RPS = NULL, TE = NULL,RTE = NULL, VTE = NULL,
VY = NULL, VPS = NULL, VE=NULL, TY = NULL, AL = NULL, MY = NULL, ME = NULL,
indLab = NULL, facLab = NULL, groupLab = "group", ngroups = 1, con = NULL)
model.path(PS = NULL, RPS = NULL, BE = NULL, VPS = NULL, VE=NULL, AL = NULL,
ME = NULL, indLab = NULL, facLab = NULL, groupLab = "group", ngroups = 1,
con = NULL)
model.sem(LY = NULL,PS = NULL,RPS = NULL, TE = NULL,RTE = NULL, BE = NULL,
VTE = NULL, VY = NULL, VPS = NULL, VE=NULL, TY = NULL, AL = NULL, MY = NULL,
ME = NULL, indLab = NULL, facLab = NULL, groupLab = "group", ngroups = 1,
con = NULL)
Arguments
LY
Factor loading matrix from endogenous factors to Y indicators (must be SimMatrix
object).
PS
Residual variance-covariance matrix among endogenous factors (must be SimMatrix
object). Either RPS or PS (but not both) must be specified in SEM and CFA models.
RPS
Residual correlation matrix among endogenous factors (must be SimMatrix
object). Either RPS or PS (but not both) must be specified in SEM and CFA models.
TE
Measurement error variance-covariance matrix among Y indicators (must be SimMatrix
object). Either RTE or TE (but not both) must be specified in SEM and CFA models.
RTE
Measurement error correlation matrix among Y indicators (must be SimMatrix
object). Either RTE or TE (but not both) must be specified in SEM and CFA models.
BE
Regression coefficient matrix among endogenous factors (must be SimMatrix
object). BE must be specified in path analysis and SEM models.
VTE
Measurement error variance of indicators (must be SimVector
object). Either VTE or VY (but not both) can be specified when RTE (instead of TE) is specified.
VY
Total variance of indicators (must be SimVector
object). Either VTE or VY (but not both) can be specified when RTE (instead of TE) is specified.
VPS
Residual variance of factors (must be SimVector
object). Either VPS or VE (but not both) can be specified when RPS (instead of PS) is specified.
VE
Total variance of of factors (must be SimVector
object). Either VPS or VE (but not both) can be specified when RPS (instead of PS) is specified.
TY
Measurement intercepts of Y indicators (must be SimVector
object). Either TY or MY (but not both) can be specified.
AL
Endogenous factor intercepts (must be SimVector
object). Either AL or ME (but not both) can be specified.
MY
Y indicator means (must be SimVector
object). Either TY or MY (but not both) can be specified.
ME
Total mean of endogenous factors (must be SimVector
object). Either AL or ME (but not both) can be specified.
modelType
"CFA", "Sem", or "Path". Model type must be specified to ensure that the matrices specified in model templates for data generation and analysis correspond to what the user intends.
indLab
Character vector of indicator labels. If left blank, automatic labels will be generated as y1
, y2
, ... yy
.
facLab
Character vector of factor labels. If left blank, automatic labels will be generated as f1
, f2
, ... ff
groupLab
Character of group-variable label (not the names of each group). If left blank, automatic labels will be generated as group
ngroups
Number of groups for data generation (defaults to 1). Should only be specified for multiple group models in which all parameter matrices are identical across groups (when ngroups > 1, specified matrices are replicated for all groups). For multiple group m
con
Additional parameters (phantom variables), equality constraints, and inequality constraints. Additional parameters must be specified using lavaan syntax. Allowed operators are ":=" (is defined as), "==" (is equal to), "<" (is="" less="" than),="" and="" "="">" (is great">