compare {rube}R Documentation

Interactively show trace, ACF, and histogram for WinBUGS output.

Description

Given a set of rube() objects, interactively compare their posteriors showing three key forms of the posterior (trace, ACF, and histogram), allowing interactively choosing parameters to see. For vector and array parameters the first view is a set of posterior intervals, maximum lags above noise level, and Gelman RHat values. The set is a random sample if the number of elements is greater than nSample. From this overview, you can use previous/next to step through the detailed plots for each element.

Usage

compare(..., params = NULL, chains = rep(1, length(MCMCRslts)), 
    nSample = 20, true = NULL, PIprob = 0.95, rHatGrayZone = c(1.2, 2),
    noMenu = FALSE, idString=NULL, cex.main=1)

Arguments

...

Two or more rube() (or bugs()) objects from successful WinBUGS runs.

MCMCRslts

A list of rube() objects.

params

An optional string vector containing only the parameters of interest.

chains

A vector choosing which chains to use in the comparisons.

nSample

Maximum number of elements of a vector parameter to show at once.

true

A true parameter value to mark on the histogram.

PIprob

A value for the posterior credible interval or NULL for none.

rHatGrayZone

Gray zone for color flagging of Gelman's Rhat.

noMenu

Set to TRUE to make one plot without allocating space for a menu.

idString

Text identifying models; shown in outer title.

cex.main

Scale factor for outer title.

Details

This is interactive in terms of examining multiple parameters by clicking on the plot. The instructions are in the plot's menu when active; R commands can only be entered after clicking Quit.

Value

Returns null invisibly.

Author(s)

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

References

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

See Also

rube


[Package rube version 0.3-11 Index]