Random generation of values along a phylogenetic tree following a branching OU process

rVNodesGivenTreePOUMM(tree, z0, alpha, theta, sigma, sigmae = 0)

Arguments

tree

An object of class phylo (package ape).

z0

Numeric value indicating the initial state at the root of the tree.

alpha, theta, sigma

Numeric values, parameters of the OU process.

sigmae

Numeric non-negative value (default 0). Specifies the standard deviation of random environmental contribution and or measurement standard error to be added to the values (white noise). Note that if measurement standard error, se, is known and needs to be added to the environmental contribution, the right way to specify the parameter would be sqrt(sigmae^2+se^2).

Value

A numeric vector containing the generated values at all nodes (internal and tips) of the phylogenetic tree.