Description Usage Arguments Examples
View source: R/paramDiagnostic.R
Plots 4 MCMC diagnostics for a parameter
1 2 | paramDiagnostic(logfile, pars, type = NULL, cols = 2, thinning = 1,
burnin = 0, title = NULL)
|
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. |
1 2 3 | paramDiagnostic("cool-data.log", "Lh")
params <- getParams("cool-data.log")
paramDiagnostic("cool-data.log", params, type = "trace", cols = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.