Description Usage Arguments Details Value Examples
Draw sample for parameters, simulate trait and compute the summary statistics for OUBMCIR model
1 | oubmcirTrait(tree = tree, traitset = traitset, sims = sims)
|
tree |
An ape: tree object stored in phylo format |
traitset |
a dataframe that contains 3 traits |
sims |
number of trait replicate |
Given tree, trait sets, function HyperParam
is called to yield the range of parameters, then function oubmbmprior
is called to draw sample for parameter, then the function oubmbmmodel
is applied to simulate traits through post order tree traversal algorithm, finally the summary statistics is computed by function sumstat
.
A list of vectors containing a dataframe of summary statistics, and a dataframe of parameter samples
1 2 3 4 5 6 7 | ## using coral dataset (running time more > 5 sec)
data(coral)
tree<-coral$tree
traitset<-coral$traitset
sims<-10
oubmcirTrait(tree=tree,traitset=traitset,sims=sims)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.