hi all,
I'm trying to learn and get used to blavaan, but something is not going well from the first step. I tried several times to run this very simple code from the help, but I get the following error. It looks like some kind of syntax error to me. I tried to find solution for this error... but couldn't make it.
Any simple suggestion wil be highly appreciated. Thank a lot.
Felix
----------------------
Here is the error:
fit <- bsem(model, data = PoliticalDemocracy,+ dp = dpriors(nu = "normal(5,10)", lambda = "normal(1,.5)"))lavaan("\n # latent variable definitions\n ind60 =~ x1 + x2 + x3\n dem60 =~ y1 + a*y2 + b*y3 + c*y4\n dem65 =~ y5 + a*y6 + b*y7 + c*y8\n\n # regressions\n dem60 ~ ind60\n dem65 ~ ind60 + dem60\n\n # residual correlations\n y1 ~~ y5\n y2 ~~ y4 + y6\n y3 ~~ y7\n y4 ~~ y8\n y6 ~~ y8\n", : lavaan ERROR: unknown argument `cat.wls.w'And the codes in the help:
model <- '
# latent variable definitions
ind60 =~ x1 + x2 + x3
dem60 =~ y1 + a*y2 + b*y3 + c*y4
dem65 =~ y5 + a*y6 + b*y7 + c*y8
# regressions
dem60 ~ ind60
dem65 ~ ind60 + dem60
# residual correlations
y1 ~~ y5
y2 ~~ y4 + y6
y3 ~~ y7
y4 ~~ y8
y6 ~~ y8
'
fit <- bsem(model, data = PoliticalDemocracy, dp = dpriors(nu = "normal(5,10)", lambda = "normal(1,.5)"))
summary(fit)
Hello Ed,
Thank you for your quick reply.
It WORKs with the lastest version. Thanks a lot!!
Best wishes,
Felix
--
You received this message because you are subscribed to a topic in the Google Groups "blavaan" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/blavaan/eYg9w3-b60w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to blavaan+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/blavaan/25d3c28f-127e-4f34-8062-0e571d685508n%40googlegroups.com.