icc function

Intra class correlation

Intra class correlation

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

icc(partition, attribute)

Arguments

  • partition: A partition
  • attribute: A vector containing the values of the attribute

Returns

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)
  • Maintainer: Marion Hoffman
  • License: GPL (>= 3)
  • Last published: 2024-05-10