paramLh: paramLh

Description Usage Arguments Examples

View source: R/paramLh.R

Description

Plots a parameter against the likelihood for each iteration.

Usage

1
paramLh(logfile, pars, cols = 2, thinning = 1, burnin = 0)

Arguments

logfile

The name of the logfile of the BayesTraits run

pars

A vector of the names of the parameters to be plotted against likelihood.

cols

The number of columns of the resultant plot (if more than one plot)

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.

Examples

1
2
3
4
paramsLh("cool-data.log", "Lambda")
paramsLh("cool-data.log", getParams("cool-data.log"))
params <- getParams("cool-data.log")
paramLh("cool-data.log", params[c(2:4)])

hferg/bayestraitr documentation built on May 28, 2019, 8:55 p.m.