simSetCFA
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.simMisspecCFA(..., conBeforeMis=TRUE, misBeforeFill=TRUE,
misfitType="rmsea", misfitBound=new("NullVector"), averageNumMisspec=FALSE,
optMisfit="none", numIter=20)Details section of simSetCFA. Again, this function does not require to list all required matrices or vectors like the 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.simSetCFAfor matrix definition and how to specify CFA modelSimMisspec for the simResultsimMisspecPathfor misspecification model in Path analysis andsimMisspecSEMfor misspecification model in SEM.n01 <- simNorm(0, 0.1)
error.cor.Mis <- matrix(NA, 6, 6)
diag(error.cor.Mis) <- 1
RTD.Mis <- symMatrix(error.cor.Mis, "n01")
CFA.Model.Mis <- simMisspecCFA(RTD=RTD.Mis)Run the code above in your browser using DataLab