coi {fossil} | R Documentation |
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
Note
While the function will still return a value, if all the species abundances are equal to 1 in the input to chao1
, a warning will be raised, and the value returned will be equal to the number of species observed.
Author(s)
Matthew Vavrek
See Also
Examples
## 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)
[Package fossil version 0.4.0 Index]