我正在使用liket包(http://reg.statistik-forum.de/)。
在我的案例中:两个问题,13个观察,使用5分制("非常不满意","不满意","两者都没有",&# 34;满意","非常满意")。
q1 <- c(3, 3, 2, 3, 3, 4, 3, 3, 4, 1, 4, 4, 3)
q2 <- c(3, 3, 2, 2, 2, 3, 1, 3, 2, 2, 2, 3, 3)
q1 <- factor(q1, levels = c(0,1,2,3,4), labels = c("Very dissatisfied","Dissatisfied","Neither","Satisfied","Very satisfied"))
q2 <- factor(q2, levels = c(0,1,2,3,4), labels = c("Very dissatisfied","Dissatisfied","Neither","Satisfied","Very satisfied"))
q.set <- cbind(q1, q2)
require(grid)
require(lattice)
require(latticeExtra)
require(HH)
likert(q.set, horizontal = TRUE, main = "Satisfaction persons")
问题1:要改变什么,所以情节中的水平是正确的(非常满意&#39;不是&#39; q1&#39;)并且分析了两个问题而不是13个观察结果?
问题2:将矢量q1和q2的电平设置为&#39;电平= c(0,1,2,3,4)&#39;,将矢量改为+1(q1:c( 4,4,3,4,4,5,4,4,5,2,5,5,4))。是否无法设置级别&#39; 0&#39;?
这是情节: