开始使用免费开始使用

选择特定拟合指标

您也可以使用 AIC 或 ECVI 等拟合指标来比较模型,而不是使用 anova() 函数。如果模型包含不同的显变量,这些拟合指标会非常有用。比较一组 AIC 或 ECVI 值时,最佳模型的指标值应最小。上一个练习中保存的模型已为您加载。

本练习是课程的一部分

使用 R 中的 lavaan 进行结构方程模型(SEM)

查看课程

练习说明

  • 使用 fitmeasures() 分别计算每个模型的拟合指标。
  • 仅选择 aicecvi 拟合指标,以缩短输出。

交互式实操练习

通过完成这段示例代码来试试这个练习。

# Analyze the original model
epi.fit <- cfa(model = epi.model, data = epi)

# Find the fit indices for the original model


# Analyze the updated model
epi.fit1 <- cfa(model = epi.model1, data = epi)

# Find the fit indices for the updated model
编辑并运行代码