Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/66.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
在SEM、Rstudio(Lavan软件包)中,此错误意味着什么 我在做什么_R - Fatal编程技术网

在SEM、Rstudio(Lavan软件包)中,此错误意味着什么 我在做什么

在SEM、Rstudio(Lavan软件包)中,此错误意味着什么 我在做什么,r,R,我在做Rstudio(交叉滞后效应模型)的结构方程模型。 我使用Lavan软件包分析两点面板数据 代码 下面是我的代码 model2009 <-' #factor analysis(latent variables) ## I fix coefficient to identify models internal1 =~1*INFLU1+a*COMPLEX1 institution1 =~ 1*PARTY1+b*ELECTION1+c*CONGRESS1 internal2

我在做Rstudio(交叉滞后效应模型)的结构方程模型。 我使用Lavan软件包分析两点面板数据

代码 下面是我的代码

model2009 <-'
 #factor analysis(latent variables)
 ## I fix coefficient to identify models
  internal1 =~1*INFLU1+a*COMPLEX1
  institution1 =~ 1*PARTY1+b*ELECTION1+c*CONGRESS1
  internal2 =~1*INFLU2+a*COMPLEX2
  institution2 =~ 1*PARTY2+b*ELECTION2+c*CONGRESS2

 #unique variances of observed variables
  INFLU1~~INFLU1; COMPLEX1~~COMPLEX1; PARTY1~~PARTY1; ELECTION1~~ELECTION1; CONGRESS1~~CONGRESS1
  INFLU2~~INFLU2; COMPLEX2~~COMPLEX2; PARTY2~~PARTY2; ELECTION2~~ELECTION2; CONGRESS2~~CONGRESS2

 #structural equation
  internal2~internal1+institution1;
  institution2~internal1+institution1;

 #covariances between latent variables
  internal1~~institution1; internal2~~institution2; internal1~~internal1;     
  institution1~~institution1; internal2~~internal2; institution2~~institution2
'

#lavaan function
result2009 <- lavaan(model2009, panel.2009, ordered = c("PARTY1","ELECTION1", "CONGRESS1", "INFLU1", "COMPLEX1", "PARTY2","ELECTION2", "CONGRESS2", "INFLU2", "COMPLEX2"),
                     WLS.V = TRUE, sample.nobs=1107)
我怎样才能解决这个问题

Gamma.g * tcrossprod(a1) でエラー(error):  適切な配列ではありません(In English: The arrangement is not appropriate)