Affiliated Professor, Dept. of Applied Educational Sciences, University of Umea, Sweden
Frontiers in Education Chief Section Editor: Assessment, Testing, and Applied Measurement
Routledge author: https://www.routledge.com/authors/i14875-gavin-brown
+ lavaanify(practicemodel3)
Error in lavParseModelString(model.syntax = model, warn = warn, debug = FALSE) :
lavaan ERROR: duplicate model element in: w3PSSM~a*w2DISCRIM
w3PSSM ~ w2PSSM + w2DISCRIM
...
w3PSSM ~ a*w2DISCRIM
# The Holzinger and Swineford (1939) example
HS.model <- ' visual =~ x1 + x2 + x3
textual =~ x4 + x5 + x6
speed =~ x7 + x8 + x9 '
lavaanify(HS.model,
auto.var=TRUE, auto.fix.first=TRUE,
auto.cov.lv.x=TRUE)
lavaanify(HS.model,
auto.var=FALSE, auto.fix.first=TRUE,
auto.cov.lv.x=TRUE)
fit <- lavaan(HS.model, data=HolzingerSwineford1939,
auto.var=FALSE, auto.fix.first=TRUE,
auto.cov.lv.x=TRUE)
Free:
id lhs op rhs user block group free ustart exo label plabel
10 10 x1 ~~ x1 0 1 1 7 NA 0 .p10.
Not Free:
10 10 x1 ~~ x1 0 1 1 0 0 0 .p10.
Error in lav_model_estimate(lavmodel = lavmodel, lavsamplestats = lavsamplestats, :
lavaan ERROR: initial model-implied matrix (Sigma) is not positive definite;
check your model and/or starting parameters.