caterplot_longRun function

Caterpillar Plots of long run effects based on opm Model Parameters

Caterpillar Plots of long run effects based on opm Model Parameters

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.

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

Returns

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

## Not run: caterplot_longRun(o, main = NULL) ## End(Not run)
  • Maintainer: Mark Pickup
  • License: GPL (>= 3)
  • Last published: 2022-06-09

Useful links