icc: Intra class correlation

View source: R/functions_statistics.R

iccR Documentation

Intra class correlation

Description

This function computes the intra class correlation correlation of attributes for 2 randomly drawn individuals in the same group.

Usage

icc(partition, attribute)

Arguments

partition

A partition

attribute

A vector containing the values of the attribute

Value

A number corresponding to the ICC

Examples

p <- c(1,2,2,3,3,4,4,4,5)
at <- c(3,5,23,2,1,0,3,9,2)
icc(p, at)

ERPM documentation built on May 29, 2024, 10:05 a.m.