
Compute ICC(1) (non-independence of data),
ICC(2) (reliability of group means),
and
HLM_ICC_rWG(
data,
group,
icc.var,
rwg.vars = icc.var,
rwg.levels = 0,
digits = 3,
nsmall = digits
)
Invisibly return a list of results.
Data frame.
Grouping variable.
Key variable for analysis (usually the dependent variable).
Default is icc.var
. It can be:
A single variable (single-item measure), then computing rWG.
Multiple variables (multi-item measure), then computing rWG(J), where J = the number of items.
As
For continuous uniform distribution, rwg.levels
is not useful and will be set to 0
(the default).
For discrete uniform distribution, rwg.levels
should be provided (= A in the above formula).
For example, if the measure is a 5-point Likert scale, you should set rwg.levels=5
.
Number of decimal places of output. Default is 3.
ICC(1) = var.u0 / (var.u0 + var.e) =
ICC(1) is the ICC we often compute and report in multilevel analysis (usually in the Null Model, where only the random intercept of group is included). It can be interpreted as either "the proportion of variance explained by groups" (i.e., heterogeneity between groups) or "the expectation of correlation coefficient between any two observations within any group" (i.e., homogeneity within groups).
ICC(2) = mean(var.u0 / (var.u0 + var.e / n.k)) =
ICC(2) is a measure of "the representativeness of group-level aggregated means for within-group individual values" or "the degree to which an individual score can be considered a reliable assessment of a group-level construct".
Bliese, P. D. (2000). Within-group agreement, non-independence, and reliability: Implications for data aggregation and Analysis. In K. J. Klein & S. W. Kozlowski (Eds.), Multilevel theory, research, and methods in organizations (pp. 349-381). San Francisco, CA: Jossey-Bass, Inc.
James, L.R., Demaree, R.G., & Wolf, G. (1984). Estimating within-group interrater reliability with and without response bias. Journal of Applied Psychology, 69, 85-98.
data = lme4::sleepstudy # continuous variable
HLM_ICC_rWG(data, group="Subject", icc.var="Reaction")
data = lmerTest::carrots # 7-point scale
HLM_ICC_rWG(data, group="Consumer", icc.var="Preference",
rwg.vars="Preference",
rwg.levels=7)
HLM_ICC_rWG(data, group="Consumer", icc.var="Preference",
rwg.vars=c("Sweetness", "Bitter", "Crisp"),
rwg.levels=7)
Run the code above in your browser using DataLab