2021年4月8日星期四

Why am I getting Structural Equation Modeling errors?

Why won't this SEM run?

> plot(c5 ~ TLDist, data = dat)  > abline(mod6, col=2, lwd=3)  > semdata <- cbind(c0, c1, c2, c3, c4, c5)  Error in cbind(c0, c1, c2, c3, c4, c5) : object 'c0' not found  > model1 <- 'c0 ~ c1  +     c1 ~ c2  +     c2 ~ c3  +     c3 ~ c4  +     c4 ~ c5  +     c5 ~ c0  +     c0 ~ c5'  > fit1 <- sem(model1, data = dat)  > lavaanPlot(name = "MODEL1", fit1, labels = semdata, coefs = TRUE)  

Error in lavaanPlot(name = "MODEL1", fit1, labels = semdata, coefs = TRUE) : could not find function "lavaanPlot" semdata <- cbind(c1, c2, c3, c4, c5) Error in cbind(c1, c2, c3, c4, c5) : object 'c1' not found semdata <- cbind(c1, c2, c3, c4, c5) Error in cbind(c1, c2, c3, c4, c5) : object 'c1' not found

https://stackoverflow.com/questions/67013724/why-am-i-getting-structural-equation-modeling-errors April 09, 2021 at 09:03AM

没有评论:

发表评论