Intra class correlation for rater reliability

icc(
  data,
  method = c("oneway", "agreement", "consistency"),
  cols = colnames(data),
  sem = TRUE,
  confint = TRUE,
  alpha = 0.05,
  var = FALSE,
  onemodel = FALSE
)

Arguments

data

data.frame with repeated measures or observations in the columns and rated subjects in the rows

method

type of ICC that is returned, options are: `c("oneway", "agreement", "consistency")`, the default returns all.

cols

column names used for the repeated measures in the wide format, default uses `cols = colnames(data)`

sem

logical vector if standard error of measurement is returned.

confint

logical vector if confidence interval for ICC is returned.

alpha

the confidence level required, default `alpha = 0.05`.

var

logical indicator if variance estimates are returned.

onemodel

logical indicator if all ICC's should be computed from one model to increase computation time, defalt `onemodel = FALSE`.

Value

matrix with relevant output

See also

[icc_agreement()] [icc_oneway()] [icc_consistency()]

Examples

mam <-
breast[,c("Mam1_score","Mam2_score", "Mam3_score")]
icc(data = mam, confint = TRUE, var = TRUE)
#>                   icc     lower     upper       sem var_level1 var_level2
#> oneway      0.6001478 0.4493754 0.7309390 1.1515241   1.990237         NA
#> agreement   0.5698257 0.4137129 0.7079019 1.1919337   1.881923  0.4443499
#> consistency 0.6558989 0.5162467 0.7724701 0.9899547   1.868020         NA
#>             var_Residual
#> oneway         1.3260076
#> agreement      0.9763561
#> consistency    0.9800104
pch <- breast[,c("PCH1_score", "PCH2_score","PCH3_score",
"PCH4_score","PCH5_score")]
icc(data = pch)
#>                   icc     lower     upper       sem
#> oneway      0.7615871 0.6710817 0.8403886 0.8591071
#> agreement   0.7593693 0.6682981 0.8387870 0.8611481
#> consistency 0.7711953 0.6829366 0.8473933 0.8317713
icc(data = pch, confint = FALSE, var = TRUE)
#>                   icc       sem var_level1 var_level2 var_Residual
#> oneway      0.7615871 0.8591071   2.357677         NA    0.7380650
#> agreement   0.7593693 0.8611481   2.340225 0.05026114    0.6913149
#> consistency 0.7711953 0.8317713   2.331886         NA    0.6918435