Learn R Programming

reghelper (version 0.3.3)

ICC.merMod: Intra-class correlation.

Description

ICC.merMod calculates the intra-class correlation (ICC) from a fitted multi-level model using the 'lme4' package.

Usage

# S3 method for merMod
ICC(model, ...)

Arguments

model

A fitted model of type 'merMod' (linear, generalized, or nonlinear).

...

Not currently implemented; used to ensure consistency with S3 generic.

Value

The intra-class correlation of the model.

Details

The ICC is the proportion of variance that is between-person variance. For more information, see Hoyt & Kenny (2013).

See Also

ICC.lme

Examples

Run this code
# NOT RUN {
# iris data
if (require(lme4, quietly=TRUE)) {
    model <- lmer(Sepal.Width ~ 1 + (1|Species), data=iris)
    ICC(model)  # .49 of variance is between-subjects
}
# }

Run the code above in your browser using DataLab