Calculate Bootstrap Statistics

DESCRIPTION:

Utility function called by bootstrap to calculate bootstrap statistics and create an object of class bootstrap which inherits from resamp.

USAGE:

bootstats(replicates, observed, n, call, seed.start, seed.end,  
          dim.obs=NULL, group=NULL, indices=NULL) 

REQUIRED ARGUMENTS:

replicates
matrix of bootstrap replicates of the parameters of interest, with one column per parameter.
observed
parameter values for the original set of data.
n
number of observations in original set of data.
call
call used by function which calls bootstats. Should contain arguments specifying the data and statistic used in the fit. Used in limits.bca to identify data and statistic to jackknife when calculating the acceleration, and by update.bootstrap and jack.after.bootstrap.
seed.start
random seed set at start of function calling bootstats. Used by jack.after.bootstrap to reproduce indices used in sampling. May be a legal random number seed or a number between 0 and 1000.
seed.end
random number seed at end of resampling.

OPTIONAL ARGUMENTS:

dim.obs
if the statistic of interest returns a matrix of parameters, the dimensions of this matrix are stored as dim.obs. This is used in plot.resamp and qqnorm.resamp to control the layout of plots.
group
group variable, if any.
indices
resampling indices to store as part of object.

VALUE:

an object of class bootstrap which inherits from resamp. This has components call, observed, replicates, estimate, B, n, dim.obs , group, seed.start, seed.end, and possibly indices. The data frame estimate has three columns containing the bootstrap estimates of Bias, Mean, and SE.

REFERENCES:

Efron, B. and Tibshirani, R. J. (1993). An Introduction to the Bootstrap. San Francisco: Chapman & Hall.

Shao, J. and Tu, D. (1995). The Jackknife and Bootstrap. New York: Springer-Verlag.

SEE ALSO:

.