Learn R Programming

pogit (version 1.1.0)

plot.pogit: Plot an object of class pogit

Description

This function provides traceplots, autocorrelation plots and density plots of the MCMC samples for an object of class "pogit" to graphically assess convergence of the MCMC simulations. It also displays the (model averaged) posterior means and 95%-HPD intervals for the regression effects.

Usage

"plot"(x, type = "traceplot", burnin = TRUE, thin = TRUE, lag.max = NULL, ci = TRUE, maxPlots = NULL, ...)

Arguments

x
an object of class pogit
type
type of plot: "traceplot" (default) for traceplots of the MCMC draws, "acf" for autocorrelation plots of the MCMC draws, "density" for density plots and "hpd" to display (model averaged) posterior means with 95%-HPD intervals for the regression effects.
burnin
logical. If TRUE (default), burn-in draws (as specified in x) are discarded.
thin
logical. If TRUE (default), thinning (as specified in x) is considered for diagnostic MCMC plots.
lag.max
maximum lag for autocorrelation plot; if NULL (default), the default of acf is used.
ci
logical. If TRUE (default), the confidence interval in the autocorrelation plot is shown (see acf for details).
maxPlots
maximum number of plots on a single page; if NULL (default), the number of plots dispayed on a single page is specified according to the used model.
...
further arguments (not used)

Examples

Run this code
## see examples for pogitBvs, logitBvs, poissonBvs and negbinBvs

Run the code above in your browser using DataLab