rho_clades: Computes the correlation between two clades.

View source: R/rho_clades.R

rho_cladesR Documentation

Computes the correlation between two clades.

Description

Computes the correlation between two clades.

Usage

rho_clades(c1, c2, n)

Arguments

c1

a string containing a clade.

c2

a string containing a clade.

n

number of taxa.

Value

a data.frame containing the marginal probabilities, joint probability and correlation.

Examples

rho_clades(c1 = "{t1,t2}", c2 = "{t1,t2}", n = 5) ## case 1
rho_clades(c1 = "{t1,t2}", c2 = "{t1,t2,t4}", n = 5) ## case 2/3 
rho_clades(c1 = "{t1,t2}", c2 = "{t3,t4,t5}", n = 5) ## case 4
rho_clades(c1 = "{t1,t2}", c2 = "{t3,t4}", n = 5) ## case 5
rho_clades(c1 = "{t1,t2}", c2 = "{t1,t3,t4}", n = 5) ## case 0

maxbiostat/cladeCorrelation documentation built on July 28, 2023, 2:42 a.m.