sig2BM: Brownian Motion rate computation

View source: R/geiger_functions.R

sig2BMR Documentation

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)

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.

Value

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

Author(s)

Pasquale Raia, Silvia Castiglione

Examples


### 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)

RRphylo documentation built on June 7, 2023, 5:49 p.m.