Plot an object of class pogit

Share:

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

1
2
3
## S3 method for class 'pogit'
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)

Author(s)

Michaela Dvorzak <m.dvorzak@gmx.at>

Examples

1
## see examples for pogitBvs, logitBvs, poissonBvs and negbinBvs