如何用Lavan,R构造单指标潜变量模型? 我到底想做什么 我试图用Lavan软件包(交叉滞后效应模型)分析面板数据 如果可以,我想运行以下代码 如何解决此问题并确定模型 stats.stackexchange上的解决方案如何? model <
如何用Lavan,R构造单指标潜变量模型? 我到底想做什么如何用Lavan,R构造单指标潜变量模型? 我到底想做什么 我试图用Lavan软件包(交叉滞后效应模型)分析面板数据 如果可以,我想运行以下代码 如何解决此问题并确定模型 stats.stackexchange上的解决方案如何? model <,r,r-lavaan,R,R Lavaan,如何用Lavan,R构造单指标潜变量模型? 我到底想做什么 我试图用Lavan软件包(交叉滞后效应模型)分析面板数据 如果可以,我想运行以下代码 如何解决此问题并确定模型 stats.stackexchange上的解决方案如何? model <- ' # Observed variables A,B,C,D are ordinal variables f1 =~ 1*A1 + B1; f2 =~ 1*A2 + B2; f3 =~ 1*C1 + D1; f4 =~ 1*C2 + D
- 我试图用Lavan软件包(交叉滞后效应模型)分析面板数据
- 如果可以,我想运行以下代码
- 如何解决此问题并确定模型
model <- '
# Observed variables A,B,C,D are ordinal variables
f1 =~ 1*A1 + B1;
f2 =~ 1*A2 + B2;
f3 =~ 1*C1 + D1;
f4 =~ 1*C2 + D2;
f3 ~ f1 + f2;
f4 ~ f1 + f2
'
result <- sem(model, data, ordered = c("A", "B", "C", "D"))
f1 =~ 1*A1 + B1;
f2 =~ 1*A2 + B2;
f3 =~ 1*C1;
f4 =~ 1*C2 + D2;
#Raw Cronbach's alpha is 0.783 and var is 0.957
C1 ~~ (1-0.783)*0.957*C1
f3 ~ f1 + f2;
f4 ~ f1 + f2
'
result <- sem(model, data, ordered = c("A", "B", "C", "D"))
lavaan WARNING:
Could not compute standard errors! The information matrix could
not be inverted. This may be a symptom that the model is not
identified.
lavaan WARNING: could not invert information matrix needed for robust test statistic