Learn R Programming

fossil (version 0.4.0)

coi: Cohesiveness Index for Relational Clustering

Description

Computes Cohesiveness Index for a Cluster Analysis

Usage

coi(mst, groups)

Arguments

mst

A minimum spanning tree matrix (binary)

groups

A vector with the group/cluster assignments for each sample

Value

Returns a something

See Also

rclust

Examples

Run this code
# NOT RUN {
## sample vector
a<-c(0,5,1,1,2,0,0,1,0,0,8,45)
chao1(a)

## matrix format
a<-matrix(c(0,5,1,1,2,0,0,1,0,0,8,45),4,3)
chao1(a)
chao2(a)

## presence absence matrix
a<-matrix(c(0,1,1,1,1,0,0,1,0,0,1,1),4,3)
chao1(a)
chao2(a)
# }

Run the code above in your browser using DataLab