View source: R/bayou-simulation.r
dataSim | R Documentation |
This function simulates data for a given set of parameter values.
dataSim(
pars,
model,
tree,
map.type = "pars",
SE = 0,
phenogram = TRUE,
verbose = TRUE,
...
)
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 |
verbose |
Determines whether information is outputted to the console for the user to view |
... |
Optional parameters passed to |
dataSim
Simulates data for a given bayou model and parameter set
A list with the following components:
Weight matrix based on the OU model and simulated shifts.
Expected trait values for each tip given the parameter set.
A named vector of simulated continuous trait values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.