作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
当我使用 sempaths(包 semplots)绘制 SEM 模型时,我无法摆脱路径。该路径看起来是两个观察变量(V1_1 和 V1_2)之间的协方差。
这是我的模型和输出图的代码:
#specifying the model using lavaan package
model = '
#define latent variable
left_right =~ Left_Right1 + Left_Right2 + Left_Right3 + Left_Right4 +
Left_Right5
#define regression
V1_1 ~ left_right
V1_2 ~ left_right
'
#fitting an sem model
fit <- sem(model, data=data, estimator="DWLS")
#loading semplot package
library(semPlot)
#plotting path diagram
semPaths(fit,label.font = 1,label.norm = "OOOO",label.scale = T, what =
"est", fade=FALSE,style="lisrel", rotation=4, title = FALSE, sizeLat = 9,
sizeMan = 5, sizeMan2 =4, sizeInt = 1, sizeInt2 = 10,posCol =c("black"),
residuals = T, layoutSplit = T, edge.label.cex = 0.6)
最佳答案
你可能已经解决了这个问题。无论哪种方式,您只需要将“残差”参数更改为 FALSE。
关于r - 省略 sempaths 中的协方差路径(包 : semplot),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45283195/
我想为带有 lavaan 的 SEM 模型使用 semPlot 为不同的节点设置不同的大小。 library(lavaan) library(semPlot) model <- ' # measu
我正在尝试使用 R 绘制 sem 路径。 我正在使用来自 Mplus 的 OUT 文件和 semPaths {semPLot}。 显然它似乎有效,但我想删除一些潜在变量,但我不知道如何。 我正在使用以
当我使用 sempaths(包 semplots)绘制 SEM 模型时,我无法摆脱路径。该路径看起来是两个观察变量(V1_1 和 V1_2)之间的协方差。 这是我的模型和输出图的代码: #specif
我是一名优秀的程序员,十分优秀!