Learn R Programming

bayou (version 2.1.1)

priorSim: Simulates parameters from bayou models

Description

priorSim Simulates parameters from the prior distribution specified by make.prior

Usage

priorSim(prior, tree, plot = TRUE, nsim = 1, shiftpars = "theta", ...)

Arguments

prior

A prior function created by bayou::make.prior

tree

A tree of class 'phylo'

plot

A logical indicating whether the simulated parameters should be plotted

nsim

The number of parameter sets to be simulated

shiftpars

A vector of parameters that split upon a shift, default is "theta"

...

Parameters passed on to plotSimmap(...)

Value

A list of bayou parameter lists