rVNodesGivenTreePOUMM: Random generation of values along a phylogenetic tree...

Description Usage Arguments Value

View source: R/likPOUMM.R

Description

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

Usage

1
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.


venelin/POUMM documentation built on Oct. 25, 2020, 12:07 a.m.