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)
partition
: A partitionattribute
: A vector containing the values of the attributeA number corresponding to the ICC
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)