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)
https://stackoverflow.com/questions/67013724/why-am-i-getting-structural-equation-modeling-errors April 09, 2021 at 09:03AMError 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
没有评论:
发表评论