Learn R Programming

adnuts (version 1.0.1)

pairs_admb: Plot pairwise parameter posteriors and optionally the MLE points and confidence ellipses.

Description

Plot pairwise parameter posteriors and optionally the MLE points and confidence ellipses.

Usage

pairs_admb(fit, diag = c("trace", "acf", "hist"), acf.ylim = c(-1, 1),
  ymult = NULL, axis.col = gray(0.5), pars = NULL, label.cex = 0.5,
  limits = NULL, ...)

Arguments

fit

A list as returned by sample_admb.

diag

What type of plot to include on the diagonal, options are 'acf' which plots the autocorrelation function acf, 'hist' shows marginal posterior histograms, and 'trace' the trace plot.

acf.ylim

If using the acf function on the diagonal, specify the y limit. The default is c(-1,1).

ymult

A vector of length ncol(posterior) specifying how much room to give when using the hist option for the diagonal. For use if the label is blocking part of the plot. The default is 1.3 for all parameters.

axis.col

Color of axes

pars

A vector of parameter names or integers representing which parameters to subset. Useful if the model has a larger number of parameters and you just want to show a few key ones.

label.cex

Control size of labels

limits

A list containing the ranges for each parameter to use in plotting.

...

Arguments to be passed to plot call in lower diagonal panels

Value

Produces a plot, and returns nothing.

Examples

Run this code
# NOT RUN {
fit <- readRDS(system.file('examples', 'fit_admb.RDS', package='adnuts'))
pairs_admb(fit)

# }

Run the code above in your browser using DataLab