comp.test | R Documentation |
Tests for independence between a clustering and another grouping of species.
This is simply an interface to chisq.test
.
comp.test(cl,spg)
cl |
a vector of integers. Clustering of species (may be taken
from |
spg |
a vector of integers of the same length, groups of species. |
chisq.test
with simulated p-value is used.
Output of chisq.test
.
Christian Hennig christian.hennig@unibo.it https://www.unibo.it/sitoweb/christian.hennig/en
Hausdorf, B. and Hennig, C. (2003) Biotic Element Analysis in Biogeography. Systematic Biology 52, 717-723.
chisq.test
, prabclust
.
set.seed(1234)
g1 <- c(rep(1,34),rep(2,12),rep(3,15))
g2 <- sample(3,61,replace=TRUE)
comp.test(g1,g2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.