paramDiagnostic: paramDiagnostic

Description Usage Arguments Examples

View source: R/paramDiagnostic.R

Description

Plots 4 MCMC diagnostics for a parameter

Usage

1
2
paramDiagnostic(logfile, pars, type = NULL, cols = 2, thinning = 1,
  burnin = 0, title = NULL)

Arguments

logfile

The name of the logfile of the BayesTraits run

pars

A vector of the names of the parameters to generate diagnostic plots for.

type

The type of diagnostic plot, if plotting across many parameters. Either "autocor", "dens", "trace" or "runmean"

cols

The number of columns for multiple plotting.

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
paramDiagnostic("cool-data.log", "Lh")
params <- getParams("cool-data.log")
paramDiagnostic("cool-data.log", params, type = "trace", cols = 3)

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