Plot Method for Resample Objects

DESCRIPTION:

Plots the distributions of parameter replicates for an object of class resamp. For each parameter, a histogram of replicates with a smooth density estimate is plotted. A solid line indicates the observed parameter value for the original data, and (when appropriate) a dotted line indicates the mean of the replicates. For the bootstrap, the difference between these two lines is the estimated bias.

USAGE:

plot.resamp(x, nrow = NULL, grid.layout = T, rugplot = F, 
            nclass.func = nclass.fd, 
            bandwidth.func = bandwidth.nrd, 
            subset.statistic = 1:p, 
            key = T, corner=c(1,1), ..., inside=F, nclass, main) 

REQUIRED ARGUMENTS:

x
object of class resamp, e.g. produced by or .

OPTIONAL ARGUMENTS:

nrow
number of rows of plots on the screen. If nrow is NULL and x has a dim.obs component, it is used to determine nrow. Otherwise, two rows are used unless there is only a single parameter.
grid.layout
logical flag indicating whether to display plots in a single grid or as separate plots when the resampled statistic is a vector.
rugplot
logical flag indicating whether to display a rug of replicate values.
nclass.func
function which produces the number of intervals to use in the histogram of replicate values. By default the function nclass.fd is used. This function uses the Freedman and Diaconis rule as described in Venables and Ripley.
bandwidth.func
function which produces a bandwidth estimate to pass to density when constructing the density estimate. By default the function bandwidth.nrd, is used. This function uses the normal reference density bandwidth estimate as described by Venables and Ripley.
subset.statistic
subscript expression; if the statistic has length greater than 1, use this to request plots for only some elements (parameters) of the statistic.
key
if TRUE (the default), then a legend is added, describing the solid and dotted lines indicating the observed value and mean of the replicates, and plotting characters are added at the bottom of the lines to help distinguish them.
corner
argument passed to indicating where to place the legend; the default is in the top right, c(0,1) indicates the top left.
...
other arguments to hist and barplot.
inside
logical, if TRUE then lines are drawn between histogram bars; default FALSE.
nclass
integer, number of intervals to use for the histogram. If supplied is used instead of nclass.func.
main
character, if supplied is used as the main title; otherwise a default title is used. Use main="" to avoid a title.

VALUE:

no value is returned.

SIDE EFFECTS:

a plot is created on the current graphics device.

REFERENCES:

Venables, W.N. and Ripley, B.D. (1997), Modern Applied Statistics with S-PLUS, Second Edition, Springer-Verlag.

SEE ALSO:

,

EXAMPLES:

temp <- bootstrap(stack.loss, var) 
plot(temp)