Plot Method for Resample Objects

DESCRIPTION:

Plots the empirical 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 a dotted line indicates the mean of the replicates. 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, ...) 

REQUIRED ARGUMENTS:

x
object of class resamp such as is produced by bootstrap or jackknife.

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 classes to use in the histogram of replicate values. By default, the function nclass.FD, which is defined within plot.resamp, 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.
...
other arguments to hist and barplot.

VALUE:

no value is returned.

SIDE EFFECTS:

Produces the above-mentioned plot.

REFERENCES:

Venables, W. N. and Ripley, B. D. (1994). Modern Applied Statistics with S-PLUS. New York: Springer-Verlag.

SEE ALSO:

,

EXAMPLES:

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