simSetPath
such that the matrices that indicates misspecification will be added as arguments in the function. However, users do not have to add all matrices and vectors
in the function. Only element indicating misspecification is added.simMisspecPath(..., exo = FALSE, conBeforeMis=TRUE, misBeforeFill=TRUE,
misfitType="rmsea", misfitBound=new("NullVector"), averageNumMisspec=FALSE,
optMisfit="none", numIter=20)
Details
section of simSetPath
.
Again, this function does not require to list all required matrices or vectors like the
TRUE
if users wish to specify both exogenous and endogenous indicators.TRUE
if users wish to constrain parameters before adding misspecification. FALSE
if users wish to constrain parameters after adding misspecification.TRUE
if users wish to apply misspecification before applying the auto-completion on the parameters that users have not specified. FALSE
if users wish to apply the auto-completion before adding misspecification. This option is helmisfitBound
below. The default is "rmsea"
. The two other options are "f0"
and "srmr"
. See popMisfitMACS
foTRUE
, the misfit will be divided by the number of free elements in the misspecification object. The default is FALSE
."min"
is specified, the program will piSimMisspec
that saves model misspecification.simSetPath
for matrix definition and how to specify Path analysis modelSimMisspec
for the simResultsimMisspecCFA
for misspecification model in CFA andsimMisspecSEM
for misspecification model in SEM.u1 <- simUnif(-0.1, 0.1)
mis.path.GA <- matrix(0, 2, 2)
mis.path.GA[2, 1:2] <- NA
mis.GA <- simMatrix(mis.path.GA, "u1")
Path.Mis.Model <- simMisspecPath(GA = mis.GA, exo=TRUE)
Run the code above in your browser using DataLab