Seven.factor <- 'space
=~ X1 + X2 + X3 + X4 + X5
personal =~ X6 + X7 + X8 + X9 + X10 + X11
listening =~ X12 + X13 + X14
activities =~ X15 + X16 + X17 + X18 + X19 + X20 + X22 + X24
interaction =~ X25 + X26 + X27 + X28
programme =~ X29 + X30
parentstaff =~ X33 + X34 + X35 + X36 + X37 + X38 + X39'
fit <-cfa(Seven.factor,data=sevenfactor, ordered=c("X1","X2","X3","X4","X5","X6","X7","X8","X9","X10","X11","X12","X13","X14","X15","X16","X17","X18","X19","X20","X22","X24","X25","X26","X27","X28","X29","X30","X33","X34","X35","X36","X37","X38","X39"))
summary(fit, fit.measures=TRUE)
--
You received this message because you are subscribed to a topic in the Google Groups "lavaan" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lavaan/jt0Y1LP_bZ4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lavaan+unsubscribe@googlegroups.com.
To post to this group, send email to lav...@googlegroups.com.
Visit this group at http://groups.google.com/group/lavaan.
For more options, visit https://groups.google.com/d/optout.
a) I have a lot of warnings like this
lavaan WARNING: empty cell(s) in bivariate table of X2 x X1
b) lavaan WARNING: covariance matrix of latent variables is not positive definite; use inspect(fit,"cov.lv") to investigate.> inspect(fit,"cov.lv")space persnl lstnng actvts intrct prgrmm prntstspace 0.271personal 0.240 0.402listening 0.247 0.338 0.626activities 0.269 0.312 0.377 0.361interaction 0.203 0.314 0.458 0.254 0.368programme 0.248 0.471 0.438 0.457 0.406 0.581parentstaff 0.197 0.232 0.218 0.161 0.146 0.223 0.252I also tried running the eigenvalues> eigen( inspect(fit, "cov.lv") )$values[1] 2.291420538 0.270285310 0.195764056 0.124092911 0.054206511 -0.003413806 -0.070878533Do I have to heed the warnings or can I ignore it?
c) Last but not least, could you be kind enough to explain your earlier reply of "some response categories simply do not occur any more in the data"
--
You received this message because you are subscribed to a topic in the Google Groups "lavaan" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lavaan/jt0Y1LP_bZ4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lavaan+un...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "lavaan" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lavaan/jt0Y1LP_bZ4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lavaan+unsubscribe@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to lavaan+un...@googlegroups.com.
Bill Revelle's "polychoric" function from the "psych" package is able to by using the correction for continuity (i.e., argument "correct"). I thought that the lavaan argument "zero.add" did the same. What is "zero.add" doing if not correcting for zero cell frequencies by replacing the zero frequency with a small decimal (e.g., .01)?
lavaan ERROR: some categories of variable `IFCB4_3' are empty in group 1; frequencies are [6 37 54 15 0]I didtable(cleandat$IFCB4_3) and get1 2 3 4 52 12 71 125 40
table(cleandat$IFCB4_3, cleandat$Gender)any advice?
If I split my cleandat into 2 subsets, specifying Gender== 1 and Gender ==2, the cfa for the subset runs smoothly.
--
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+un...@googlegroups.com.
To post to this group, send email to lav...@googlegroups.com.
Visit this group at https://groups.google.com/group/lavaan.
To view this discussion on the web visit https://groups.google.com/d/msgid/lavaan/68b4c214-6d84-422e-b13d-3b824efe06c3%40googlegroups.com.
lavaan ERROR: sample covariance matrix is not positive-definiteCov.lv output prior to the group= "gender" is
is there anything else I can do rather than collapsing responses of 2 to 1 because the differences are exactly what I'd like to examine and capture, i.e. they are likely meaningful so I would rather not collapse them further,
Group: Male
...
Group: Female
...
the link you shared suggests this kind of syntax only works for continuous data and I have ordinal data.