btmcmc: btmcmc

Description Usage Arguments Value

View source: R/btmcmc.R

Description

Returns the full mcmc object from a BayesTraits log file. This is used inside plot functions and so on, but might be useful for other MCMC manipulations and so on.

Usage

1
btmcmc(logfile, thinning = 1, burnin = 0)

Arguments

logfile

The name of the logfile of the BayesTraits analysis.

thinning

Thinning parameter for the posterior - defaults to 1 (all samples). 2 uses every second sample, 3 every third and so on.

burnin

The number of generations to remove from the start of the chain as burnin. Use if the chain has not reached convergence before sampling began.

Value

A data frame containing the sample from the BayesTrait mcmc.


hferg/btrtools documentation built on May 17, 2019, 3:56 p.m.