【问题标题】:R-package lavaan (structure equation modeling) - How to access estimates for latent variables?R-package lavaan(结构方程建模) - 如何访问潜在变量的估计值?
【发布时间】:2015-06-21 05:43:21
【问题描述】:

假设我在 lavaan 中安装一个模型,如下所示:

# model
model <- '
  L1 =~ x1 + x2
'  
# fit & summary
fit <- lavaan(model=model1, model.type="sem", data=PE_test)
summary(fit)

如何访问每个案例的潜在变量 (L1) 的估计值? 我一直在使用 str(fit) 寻找某种 fit$coeff,但到目前为止我还没有成功。

有什么建议吗?

【问题讨论】:

  • 你试过parameterEstimates(fit)吗?

标签: r


【解决方案1】:

predict 函数将返回潜在变量得分估计值。例如,

LatentScoreEstimates &lt;- predict(fit)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-14
    • 2022-11-03
    • 1970-01-01
    • 1970-01-01
    • 2021-07-10
    相关资源
    最近更新 更多