dataSim: Simulates data from bayou models

Description Usage Arguments Details

View source: R/bayou-simulation.r

Description

This function simulates data for a given set of parameter values.

Usage

1
2
dataSim(pars, model, tree, map.type = "pars", SE = 0, phenogram = TRUE,
  ...)

Arguments

pars

A bayou formated parameter list

model

The type of model specified by the parameter list (either "OU", "OUrepar" or "QG").

tree

A tree of class 'phylo'

map.type

Either "pars" if the regimes are taken from the parameter list, or "simmap" if taken from the stored simmap in the tree

SE

A single value or vector equal to the number of tips specifying the measurement error that should be simulated at the tips

phenogram

A logical indicating whether or not the simulated data should be plotted as a phenogram

...

Optional parameters passed to phenogram(...).

Details

dataSim Simulates data for a given bayou model and parameter set


bayou documentation built on May 19, 2017, 1:18 p.m.

Search within the bayou package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.