Learn R Programming

merTools (version 0.6.1)

ICC: Calculate the intraclass correlation using mixed effect models

Description

Calculate the intraclass correlation using mixed effect models

Usage

ICC(outcome, group, data, subset = NULL)

Value

a numeric for the intraclass correlation

Arguments

outcome

a character representing the variable of the outcome

group

a character representing the name of the grouping term

data

a data.frame

subset

an optional subset

Examples

Run this code
data(sleepstudy)
ICC(outcome = "Reaction", group = "Subject", data = sleepstudy)

Run the code above in your browser using DataLab