make.bfctlf: Prepare mcmctree or bpp control files for marginal likelihood...

View source: R/marginal-lhd.R

make.bfctlfR Documentation

Prepare mcmctree or bpp control files for marginal likelihood calculation

Description

Prepare mcmctree or bpp control files for marginal likelihood calculation

Usage

make.bfctlf(beta, ctlf = "bpp.ctl", betaf = "beta.txt")

Arguments

beta

numeric vector of beta values

ctlf

character, mcmctree or bpp control file template

betaf

character, file onto which to write selected beta values

Details

This function generates a set of n directories each containing a modified ctlf control file with the appropriate beta value to run mcmctree (or bpp) to obtain MCMC samples under the required power-posterior distribution. For the general theory of marginal likelihood calculation with power posteriors see Yang (2014).

The beta values are printed to betaf.

Author(s)

Mario dos Reis

References

Yang Z (2014) Molecular Evolution: A Statistical Approach. Oxford University Press. Pages 256–260.

See Also

make.beta, stepping.stones


dosreislab/bppr documentation built on April 10, 2023, 6:12 p.m.