A function and vignettes for computing an intraclass correlation described in Aguinis & Culpepper (in press). iccbeta
quantifies the share of variance in a dependent variable that is attributed to group heterogeneity in slopes.
You can install iccbeta
from CRAN using:
Or, you can be on the cutting-edge development version on GitHub using:
To use the iccbeta
package, load it into R using:
From there, calling the icc_beta()
function with either a lmer()
model object or the desired individual components will compute the intraclass correlation: