Description Usage Arguments Value Author(s) References See Also Examples

This function conducts (reasonably) fast quantitative trait simulation on a phylogeny under several different models: Brownian motion (default), BM with a trend (for `mu!=0`

), bounds (for `bounds!=c(-Inf,`

`Inf)`

), and OU.

1 2 |

`tree` |
is a phylogenetic tree in |

`a` |
a value for ancestral state at the root node. |

`mu` |
an optional value for the mean of random normal changes along branches of the tree - can be used to simulate a trend if |

`sig2` |
instantaneous variance of the BM process. |

`bounds` |
a vector with the lower and upper bounds (respectively) for bounded Brownian simulation - by default simulation is unbounded. |

`internal` |
logical value indicating whether or not to return states for internal nodes. |

`nsim` |
number of simulations. |

`...` |
optional arguments |

A vector (for `nsim=1`

) or matrix containing the tip states for the `n`

species in the tree, and (optionally) the ancestral states for internal nodes.

Liam Revell [email protected]

Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). *Methods Ecol. Evol.*, **3**, 217-223.

1 2 3 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.