Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/78.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何用Lavan,R构造单指标潜变量模型? 我到底想做什么 我试图用Lavan软件包(交叉滞后效应模型)分析面板数据 如果可以,我想运行以下代码 如何解决此问题并确定模型 stats.stackexchange上的解决方案如何? model <_R_R Lavaan - Fatal编程技术网

如何用Lavan,R构造单指标潜变量模型? 我到底想做什么 我试图用Lavan软件包(交叉滞后效应模型)分析面板数据 如果可以,我想运行以下代码 如何解决此问题并确定模型 stats.stackexchange上的解决方案如何? model <

如何用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,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 + 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