我正在尝试计算一个包含28个项目的量表的内部一致性。
alpha(df)失败,错误为
Likely variables with missing values are dast11_recode dast20
Error in principal(x, scores = FALSE) :
I am sorry: missing values (NAs) in the correlation matrix do not allow me to continue.
Please drop those variables and try again.
In addition: Warning message:
In cor(r, use = use) : the standard deviation is zero由于运行alpha(select(df, -dast20))运行正常,变量'dast20‘可能是导致问题的原因。
alpha(na.omit(df))也可以正常运行,但会给出警告
Item = dast20 had no variance and was deleted but still is counted in the scorevar(df$dast20) = 0.0009784736
具体地说,dast20包含1022个观察值('0' - 1021; '1' - 1)。
我想了解为什么这会给我带来问题,这样我就可以确定正确的解决方案。
发布于 2021-02-16 06:08:08
如果您分析变量dast20中的类的频率
table(df$dast20)
你会发现你没有可变性,所以它不是一个变量,它不会给克朗巴赫的α的估计值增加任何东西。
https://stackoverflow.com/questions/66215862
复制相似问题