Description Usage Arguments Value Examples
View source: R/sample.congruence.class.posterior.R
This function takes a posterior sample as input: a list of ACDC objects.
It will then iterate over the samples, and for each posterior sample it will
sample from the posterior class. It will sample using the sample.basic.models
function, and all additional parameters are passed to sample.basic.models
.
1 2 3 4 5 6 | sample.congruence.class.posterior(
posterior,
num.samples,
rate.type = "extinction",
...
)
|
posterior |
a list of ACDC model objects |
num.samples |
The pulled diversification rate function (measured in time before present). |
rate.type |
either "extinction", "speciation", or "both" |
... |
Arguments passed on to
|
A named list with congruent rates.
1 2 3 4 5 6 7 8 9 10 11 12 | data(primates_ebd_log)
posterior <- read.RevBayes(primates_ebd_log, max_t = 65, n_samples = 20)
samples <- sample.congruence.class.posterior(posterior,
num.samples = 20,
rate.type = "extinction",
rate0.median = 0.1,
model = "MRF",
max.rate = 1.0)
print(samples)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.