priPost {rube}R Documentation

Show MCMC prior and posterior on the same plot.

Description

Show MCMC prior and posterior on the same plot.

Usage

priPost(post, dist = c("Normal", "Uniform", "Gamma", "Beta", "sdFromGammaPrecision",
        "HyperBeta", "HyperGamma"), pripar, main = NULL, xlab = NULL, xlim = NULL,
        nsim = 2000, digits = 1, true = NULL, hgtrim=0.99)

Arguments

post

A vector, usually from an element of the sims.list element of a bugs() object, that contains the posterior simulated values for one parameter.

dist

The specified distribution of the parameter.

pripar

The parameters of the prior distribution (numeric vector).

main

The plot title.

xlab

The plot x-label (defaults to the parameter name as best determined).

xlim

x-axis limits.

nsim

Number of simulations of the prior used to evaluate its shape when a compound prior is used.

digits

Number of digits to round to for posterior credible interval.

true

The true value of the parameter (if the data are simulated).

hgtrim

The quantile below which simulated hypergamma simulated priors are kept.

Value

Invisible NULL

Author(s)

Howard J. Seltman <hseltman@stat.cmu.edu>

References

http://www.stat.cmu.edu/~hseltman/rube

See Also

rube

Examples

## Fake posterior for a N(0,10) prior.
  priPost(rnorm(100), "Normal", c(0,10))

[Package rube version 0.3-11 Index]