我有一个规模,我试图运行Cronbach Alpha来测试其可靠性。我已经阅读了很多与tau等价相关的研究(所有项目都应该对构造做出同等贡献)
我在R中编写了一个小函数,它利用了tau.test
包中的coefficientalpha
。
然而,当我运行它时,我收到以下错误:
> Error in solve.default(A) :
system is computationally singular: reciprocal condition number = 3.82436e-18
In addition: Warning messages:
1: In pf(trf, df, n - df) : NaNs produced
2: In lav_model_vcov(lavmodel = lavmodel, lavsamplestats = lavsamplestats, :
lavaan WARNING: could not compute standard errors!
lavaan NOTE: this may be a symptom that the model is not identified.
我的问题是,有人可以向我解释错误,以及如何解决这些错误或建议另一种方法来查看问题是否对构造做出同等贡献。我怀疑它没有足够的属性。
可重现的例子如下:
x <- round(rnorm(n=709 ,mean = 6, sd = 1))
x1 <-round(rnorm(n=709 ,mean = 5.6, sd = 1.3))
mydf <- data.frame(A1 = x,
A2 = x1
)
mdl = coefficientalpha::bootstrap(as.data.frame(mydf),
type='alpha',
alpha=.95,
nboot=100,
ci="bc",
plot=FALSE)
tau <- coefficientalpha::tau.test(as.data.frame(mydf))