estimate_marginal_models estimates the marginal likelihood of both the strict and the relaxed clock model, given the JC69 substitution model, using the NS package in BEAST, made available via the babette R package. The NS package performs nested sampling, and uses an MCMC approach to estimate the marginal likelihood. Sampling is performed until convergence of the MCMC chain. Unfortunately, currently the babette package is unavailable on CRAN, requiring installation through GitHub to enjoy the full functionality of this function.
estimate_marginal_models(
fasta_filename,
use_yule_prior = FALSE,
rng_seed = 42,
sub_rate = 1,
verbose = FALSE
)data frame with marginal likelihoods and relative weights per clock model.
file name of fasta file holding alignment for which the marginal likelihood is to be estimated
by default, a birth-death prior is used as tree prior, but if use_yule_prior is set to TRUE, a pure-birth prior will be used.
seed of pseudo-random number generator
substitution rate
boolean indicating if verbose intermediate output is to be generated