eigenRegr: Non-parametric tests of matrix proportionality for...

View source: R/eigenRegr.R

eigenRegrR Documentation

Non-parametric tests of matrix proportionality for comparative data

Description

Evaluates the proportionality between the intraspecific patterns of covariation and interespecific rates of evolution through eigen-decompositon.

Usage

eigenRegr(G, means, phy, n.s, sims = 1000, dim.ret = NULL, parallel = FALSE)

Arguments

G

matrix kxk for k number of traits.

means

matrix sxk containing the empirical means of all k characters for each species (s). Default = NULL.

phy

a phylogenetic tree. Must be of class 'phylo'.

n.s

a vector indicating the sample sizes for each terminal.

sims

numeric. total number of summulations.

dim.ret

choose the number of dimentions that should be retained in the analysis.

parallel

Should parallelize? Default is FALSE. See 'parallel vignette' for details

Value

npEigentest returns a list containing summary of test results, simulated values for each test, and observed results for empirical data.

Empirical

Empirical statistic values.

SimValues

Simulated statistic values.

eigenvalues

Relationship between empirical within-species eigenvalues and between species variances.

Author(s)

Fabio Andrade Machado

Examples

## Not run: data("Canidae")
## Not run: test.out<-npEigentest(G=W, means, tree, n.s, sims = 100, dim.ret = 20)
test.out$SimValues
## End(Not run)

FabioLugar/mvEvol documentation built on Dec. 21, 2024, 7:25 p.m.