RandIndexTest: Rand Index Test

Description Usage Arguments Value References Examples

View source: R/rand_index_test.R

Description

This function performs Rand index test for association between two phylo objects.

Usage

1
RandIndexTest(dend1, dend2, k = 2, nperm)

Arguments

dend1

An object of type phylo.

dend2

A second object of type phylo.

k

An integer that specifies the number of clusters that the dendrogram should be cut into. The default is k = 2. Clusters are defined by starting from the root of the dendrogram and cutting across.

nperm

The number of times to permute tips of the dend2.

Value

A numeric value between 0 and 1 and permutation P value.

References

Rand, W.M. (1971) Objective criteria for the evaluation of clustering methods. Journal of the American Statistical Association 66: 846-850.

Examples

1
2
3
4
data(ex_hapMat_data)
d1 <- reconstructPP(ex_hapMat_data, focalSNV = 1, minWindow = 1)
d2 <- reconstructPP(ex_hapMat_data, focalSNV = 5, minWindow = 1)
RandIndexTest(dend1 = d1,  dend2 = d2, k = 5, nperm = 100)

perfectphyloR documentation built on March 8, 2021, 9:06 a.m.