max_corr: Maximum possible correlation between clades on 'n' taxa.

View source: R/min_max_corr.R

max_corrR Documentation

Maximum possible correlation between clades on n taxa.

Description

Maximum possible correlation between clades on n taxa.

Usage

max_corr(n)

Arguments

n

number of taxa.

Value

maximum value of the correlation matrix on n taxa.

Examples

ns <- round(seq(4, 1E3, length.out = 200))
plot(ns, max_corr(ns),  lwd = 3,
xlab = expression(n), ylab = expression(rho[max](n)),
 main = "Maximum correlation between clade indicators", 
 type = "l" , cex.lab = 1.5)
 abline(h = 0, lwd = 2, lty = 2)

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