p3 {rube} | R Documentation |
Given an R2WinBUGS bugs() object or a sims.array component of that, interactively show three key forms of the posterior (trace, ACF, and histogram), allowing interactively choosing the parameters. 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.
p3(rubeResult, params = NULL, only=NULL, drop=0, add=NULL, nSample=20, true=NULL, viewGroups=NULL, LCzero=TRUE, PIprob=0.95, rHatGrayZone=c(1.2,2.0), noMenu=FALSE)
rubeResult |
A bugs() object of the R2WinBUGS package or its sims.array component. |
params |
An optional string vector containing only the parameters of interest. |
only |
If "params" specifies a single multi-level parameter, then "only" specifies which component of that parameter to display. |
drop |
Number of initial iterations to drop |
add |
List of expressions or strings defining new parameters to create. |
nSample |
Sample size for condensed plot when parameter dim > nSample. |
true |
An optional numeric vector of true values (for simulated data) with NAs as place holders for those without known true values. |
viewGroups |
A list of string vectors of parameter names to be shown in groups. Any group can be a single string of the form "bb*cc" in which case all paramteters starting with "bb" and ending with "cc" will be in the group. |
LCzero |
Set to FALSE to suppress the zero line in the summary plots for LC groups. |
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. |
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 to end the function.
Returns null invisibly.
Howard J. Seltman <hseltman@stat.cmu.edu>
http://www.stat.cmu.edu/~hseltman/rube/
cat("Need a good example!\n")