Learn R Programming

OrthoPanels (version 1.2-4)

caterplot_longRun: Caterpillar Plots of long run effects based on opm Model Parameters

Description

Creates side-by-side plots of equal-tailed credible intervals of opm the long run effects parameters. The intervals are displayed as horizontal lines, with 90% interval using a thicker line width and 95% interval a thinner one. The posterior median is indicated with a dot.

Usage

caterplot_longRun(
  x,
  parm = NULL,
  main = "Caterpillar plot of long run effects",
  xlab = "Range of parameter samples",
  probs = c(0.025, 0.05, 0.5, 0.95, 0.975),
  labels = colnames(ranges)
)

Arguments

x

an instance of class opm

parm

a specification of which parameters are to be plotted, a vector of names are the only legal values. If missing, all parameters are considered.

main, xlab

useful defaults for the plot title and X-axis label

probs

a vector specifying the quantiles, the defaults is 2.5%, 5%, 50%, 95%, and 97.5% quantiles

labels

labels for each parameter's interval: see axis

Value

A matrix of 2.5%, 5%, 50%, 95%, and 97.5% quantiles for each of the desired parameters, with model parameters arranged in columns.

Examples

Run this code
# NOT RUN {
caterplot_longRun(o, main = NULL)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab