Methods for common generic functions for resample objects
Methods for common generic functions. The methods operate primarily on the replicates (resampled statistics).
"print"(x, ...) "hist"(x, ..., resampleColumns = 1:x$p, xlim = NULL, xlab = NULL, main = "", col = "blue", border = 0, breaks = "FD", showObserved = TRUE, legend = TRUE, args.legend = NULL) "plot"(x, ...) "qqnorm"(y, ..., resampleColumns = 1:y$p, ylab = NULL, pch = if(y$R < 100) 1 else ".") "quantile"(x, ...)
"resample"object, usually produced by one of
additional arguments passed to the corresponding generic function.
plot.resample, these are passed to
- integer subscripts, or names of statistics. When a statistic is a vector, resampleColumns may be used to select which resampling distributions to plot.
- limits for the x axis.
- xlab, ylab
- x and y axis labels.
- main title
color used to fill bars, see
color of the order around the bars, see
method for computing breaks, see
TRUEthen vertical lines are shown at the observed statistic and mean of the bootstrap replicates.
TRUEa legend is added. Not used if
showObserved = FALSE.
NULLor a list of arguments to pass to
plotting character, see
hist.resample displays a histogram overlaid with a density
plot, with the observed value of the statistic indicated.
plot.resample currently just calls
quantile.resample, a matrix with one row for each statistic and one column for each value in
probs. This uses
quantile, for wider (more accurate) quantiles than the usual default.The other functions are not called for their return values.
## Not run: # # See full set of examples in resample-package # data(Verizon) # CLEC <- with(Verizon, Time[Group == "CLEC"]) # bootC <- bootstrap(CLEC, mean, seed = 0) # print(bootC) # hist(bootC) # qqnorm(bootC) # quantile(bootC, probs = c(.25, .975)) # # That is the percentile interval with expand = FALSE # CI.percentile(bootC) # ## End(Not run)