我尝试使用psych的cor.ci命令进行多变量相关,但出现以下错误。您知道我的数据出了什么问题吗?
psych::cor.ci(myData , poly = TRUE)
> Some polytomous variables have fewer categories than they should. Please check your data. Potential bad items are Error in mixedCor(data = x, c = NULL, p = p, d = d, smooth = smooth, correct = correct,
这是我的数据(参与者必须使用4点李克特量表进行回答;在所有变量中,参与者至少选择了3个值):
myData <- structure(list(V1 = c(3, 2, 3, 2, 3, 3, 3, 3, 3, 3, 2, 3, 3,
3, 2, 3, 3, 3, 2, 3, 3, 1, 2, 3, 3, 3, 3, 2, 3, 2, 3, 2, 1, 3,
3, 3, 2, 3, 3, 3, 3, 1, 3, 2, 3, 3, 3, 2, 3, 2, 2), V2 = c(3,
2, 2, 1, 1, 2, 3, 3, 2, 1, 3, 3, 1, 1, 2, 2, 3, 2, 2, 3, 2, 3,
2, 3, 3, 3, 2, 3, 3, 2, 2, 2, 1, 1, 1, 3, 2, 1, 3, 1, 2, 3, 2,
3, 3, 3, 2, 2, 2, 3, 1), V3 = c(0, 0, 0, 1, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 3, 1, 0, 0, 1, 0,
0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0),
V4 = c(1, 2, 1, 1, 0, 0, 1, 0, 2, 1, 0, 1, 2, 1, 2, 1, 1,
1, 0, 2, 0, 0, 1, 0, 0, 2, 0, 0, 0, 0, 1, 1, 2, 3, 0, 2,
1, 1, 1, 2, 0, 0, 1, 0, 0, 1, 2, 1, 0, 1, 1), V5 = c(2, 2,
1, 2, 3, 2, 2, 3, 2, 2, 2, 2, 2, 1, 2, 1, 1, 2, 2, 1, 2,
3, 1, 3, 1, 2, 2, 3, 3, 2, 2, 2, 1, 1, 1, 2, 1, 1, 2, 0,
3, 3, 2, 2, 2, 2, 1, 1, 2, 0, 2), V6 = c(0, 0, 1, 1, 0, 0,
1, 1, 1, 1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