Interrater reliability for continuous measurements presented to two or more raters.

1 | ```
computeICCrater(dat)
``` |

`dat` |
Data frame that contains the columns score, pat, rater. |

Interrater reliability, or more specifically an intraclass correlation coefficient (ICC), is computed when the same continuous measurements are presented to two or more raters. Depending on the underlying model, several different ICCs can be computed. Here, we provide ICC(2, 1) which is derived from a regression model with random effects for rater and patients, and ICC(3, 1) where raters are considered to be fixed.

A list containing the following elements:

`sig.pat` |
Variance of random subject effect. |

`sig.rater` |
Variance of the random rater effect. |

`sig.res` |
Residual variance. |

`icc(2, 1)` |
ICC(2, 1): Intraclass correlation from a two-random effects model. |

`icc(3, 1)` |
ICC(3, 1): Intraclass correlation from a model with fixed rater effect. |

Since this function relies on a mixed-model formulation using
package lme4 to compute ICCs, it can also handle *unbalanced*
data.

Kaspar Rufibach

kaspar.rufibach@gmail.com

Shrout, P.E. and Fleiss, J.L. (1979).
Intraclass correlations: uses in assessing rater reliability.
*Psychological Bulletin*, **36**, 420–428.

Rousson, V., Gasser, T., and Seifert, B. (2002).
Assessing intrarater, interrater and test-retest reliability of continuous measurements.
*Statist. Med.*, **21**, 3431–3446.

`confIntICC`

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ```
if (requireNamespace("lme4")) {
## generate dataset (balanced data)
set.seed(1977)
n <- 40
r1 <- round(runif(n, 1, 20))
dat <- data.frame(
"score" = c(r1, r1 + abs(round(rnorm(n, 1, 3))),
r1 + abs(round(rnorm(n, 1, 3)))),
"pat" = rep(c(1:n), 3),
"rater" = rep(1:3, each = n))
computeICCrater(dat)
## also works for unbalanced data
dat2 <- dat[sort(sample(1:(3 * n))[1:100]), ]
computeICCrater(dat2)
}
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.