Computes the ICC using ANOVA-based methods following Shrout & Fleiss (1979). Supports one-way and two-way random/mixed models, agreement and consistency types, and single or average unit measures.
Arguments
- ratings
Numeric matrix with subjects as rows and raters/sessions as columns.
- model
Character; ICC model type:
- "oneway"
One-way random effects (ICC(1,1) or ICC(1,k))
- "twoway"
Two-way random/mixed effects (default)
- type
Character; agreement type:
- "agreement"
Absolute agreement (ICC(2,1) for twoway)
- "consistency"
Consistency/relative agreement (ICC(3,1) for twoway)
- unit
Character; unit of measurement:
- "single"
Reliability for a single rater/measurement
- "average"
Reliability for the mean of k raters/measurements
Value
A list with components:
- icc
ICC value
- ci_lower
Lower bound of 95 percent confidence interval
- ci_upper
Upper bound of 95 percent confidence interval
- f_value
F statistic from ANOVA
- p_value
p-value for testing ICC = 0
- model
Model used
- type
Agreement type used
Details
The function implements the six ICC forms from Shrout & Fleiss (1979):
ICC(1,1): One-way random, single measures
ICC(1,k): One-way random, average measures
ICC(2,1): Two-way random, absolute agreement, single measures
ICC(2,k): Two-way random, absolute agreement, average measures
ICC(3,1): Two-way mixed, consistency, single measures
ICC(3,k): Two-way mixed, consistency, average measures
References
Shrout PE, Fleiss JL (1979). Intraclass correlations: Uses in assessing rater reliability. Psychological Bulletin, 86(2), 420-428.
See also
sem() for standard error of measurement based on ICC,
mdc() for minimal detectable change,
blandAltman() for agreement analysis between methods.