icc: Intra class correlation for rater reliability

View source: R/icc.R

iccR Documentation

Intra class correlation for rater reliability

Description

Intra class correlation for rater reliability

Usage

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)
pch <- breast[,c("PCH1_score", "PCH2_score","PCH3_score",
"PCH4_score","PCH5_score")]
icc(data = pch)
icc(data = pch, confint = FALSE, var = TRUE)

iriseekhout/Agree documentation built on July 28, 2023, 11:24 p.m.