r - How can I retrieve the variances in the ICC formula in R?
问题描述
One of the formula to calculate an intra-class correlation coefficient (ICC) is the following:
I would like to retrieve the value of each component in R in order to calculate the SEM using the following formula
However, the packages that can be used to calculate an ICC don't provide these values in their output. Here's a dataframe to test that out (4 judges, testing the inter-rater reliability):
library(psych)
df<-data.frame("J1"=c(9,6,8,7,10,6),"J2"=c(2,1,4,1,5,2),"J3"=c(5,3,6,2,6,4),"J4"=c(8,2,8,6,9,7))
ICC(df)
#or using irr package
library(irr)
icc(df)
The output from neither of these packages is satisfactory. Any advice?
解决方案
推荐阅读
- java - 有没有办法为同一平台上的多个目标的 java 应用程序构建安装程序?
- c - 为什么 fgets 和 gets 无法将字符串读入结构?
- python - Python 中的依赖类型和多态性与 mypy
- php - symfony 4 学说 createQueryBuilder with andWhere
- jquery - 如何在 CSS 动画中设置可见性:隐藏然后可见性:可见?
- javascript - 如何在 JavaScript 中修复数组
- c - C中两个矩阵的和和乘积(带函数)
- facebook-graph-api - 从 Facebook Graph API 中提取我的时间线帖子
- mysql - 需要一些关于外键约束的解释
- java - 单击 TableView 时 JavaFX 13 抛出 java.lang.ClassCastException