我需要计算iCC的95% CI。
我用的是这个代码:
icc(mydata[,c(1,2)], model = "twoway",type = "agreement", unit = "average")我得到了这个错误消息。
Error in icc(mydata[, c(1, 1)], model = "twoway", type = "agreement", :
unused arguments (model = "twoway", type = "agreement", unit = "average")我的数据:
mydata= data.frame(A=c(0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 3), B=c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 2))我怎么才能修好它?
谢谢!
发布于 2021-12-18 01:06:57
您可能加载了两个都使用icc()的竞争性包。心理包和irr包都有这个函数名。如果两者都已加载,则心理包可能掩盖irr命令。这些都不是心理学的有效论据::icc(),但它们是代表irr::icc()
尝试:
irr:: icc(mydata[,c(1,2)], model = "twoway",type = "agreement", unit = "average")https://stackoverflow.com/questions/70400213
复制相似问题