我正在努力让分组选项起作用。 当我选择分组时,我会得到错误的数据。这是我的代码
> likert(GroupCD[16])
Item Strongly Disagree Disagree Neutral Agree Strongly Agree
1 Q16 0 0 10.71429 46.42857 42.85714
> likert(GroupCD[16],grouping = GroupCD$Group)
Group Item Strongly Disagree Disagree Neutral Agree Strongly Agree
1 C Q16 6.666667 33.33333 60.00000 0 0
2 D Q16 15.384615 61.53846 23.07692 0 0
可以看到按组分隔的值是错误的,或者可能(并且可能)我使用了这个错误。
这是组列
> print(GroupCD$Group)
[1] "C" "C" "C" "C" "C" "C" "C" "C" "C" "C" "C" "C" "C" "C" "C" "D" "D" "D" "D" "D" "D" "D" "D" "D" "D" "D" "D" "D"
有什么建议吗?
编辑:这是GroupCD [16]
"Q16"
"1" "Strongly Agree"
"2" "Strongly Agree"
"3" "Strongly Agree"
"4" "Strongly Agree"
"5" "Agree"
"6" "Agree"
"7" "Strongly Agree"
"8" "Strongly Agree"
"9" "Agree"
"10" "Strongly Agree"
"11" "Strongly Agree"
"12" "Neutral"
"13" "Strongly Agree"
"14" "Agree"
"15" "Agree"
"16" "Neutral"
"17" "Strongly Agree"
"18" "Strongly Agree"
"19" "Agree"
"20" "Agree"
"21" "Agree"
"22" "Agree"
"23" "Agree"
"24" "Strongly Agree"
"25" "Agree"
"26" "Neutral"
"27" "Agree"
"28" "Agree"
答案 0 :(得分:0)
所以我可以关闭这个: 显然这是R工作区/会话中的垃圾问题(??)。一旦我开始使用新的一切,一切正常