Learn R Programming

RRphylo (version 2.8.0)

sig2BM: Brownian Motion rate computation

Description

The function computes rate of phenotypic evolution along a phylogeny assuming Brownian Motion model of evolution.

Usage

sig2BM(tree,y)

Value

The Brownian Motion rate of phenotypic evolution for each variable in y.

Arguments

tree

a phylogenetic tree. The tree needs not to be ultrametric and fully dichotomous.

y

either a single vector variable or a multivariate dataset. In any case, y must be named.

Author

Pasquale Raia, Silvia Castiglione

Examples

Run this code

### Univariate data ###
data(DataCetaceans)
DataCetaceans$treecet->treecet
DataCetaceans$masscet->masscet
sig2BM(tree=treecet,y=masscet)

### Multivariate data ###
data(DataUng)
DataUng$treeung->treeung
DataUng$PCscoresung->PCscores
sig2BM(tree=treeung,y=PCscores)

Run the code above in your browser using DataLab