compareBoot {ssExtra}R Documentation

Compare Multiple Bootstrap Simulation Resuts from bcaboot and boot

Description

This routine will run testBoot on each of n+B combinations. Thus, it can be used to look at the differences between the two bca confidence interval routines, bcaboot:bcajack and boot:boot.ci for confidence interval calculation.

Usage

compareBoot(n = c(100, 200),
            B = c(1000, 1200),
            tablePath = "",
            tableName = "",
            digits = c(0, 0, 0, rep(3, 6)),
            caption = "Bootstrap Confidence Interval Comparison",
            label = "tab:bootTable",
            ssshhh = FALSE,
            ...)

Arguments

n

A vector of sample sizes that are to be used for bootstrapping. Note that since this routine calls testBoot, the samples for each sample size are drawn from a standard normal distribution.

B

A vector with the number of bootstrap sample replicates at each sample size.

tablePath

The relative path to tableName; see below for detials.

tableName

The file name for the xtable output table. Use ‘’ for no hardcopy table output; otherwise a *.tex file name.

digits

The number of display digits for the xtable. Please see the link for more details.

caption

The caption for the xtable.

label

The LaTeX label for the xtable.

ssshhh

runQuiet is set to TRUE in the call to testBoot, so this is a local version only for running quietly.

...

Arguments passed to testBoot.

Details

This routine was written simply to facilitate comparison the two bca confidence interval results in the different packages cited above. Note that the results can be saved to a file by using the xtable function in package xtable.

Value

A list with...

df

A data frame with the results, which should be self-explanatory.

xtab

A LaTeX table object of class “xtable”.

Note

Neither this routine, nor testBoot are meant to be general purpose routines. They were written to explore the differences in calculated bca intervals for a specific population, that of a standard normal. One could certainly adapt these routines to other uses.

Please see the note in testBoot concerning the potential error that can occur using boot.ci.

Author(s)

Jeffrey H. Gove

See Also

testBoot, bcaboot, bcajack, boot, boot.ci

Examples

#
# simply...
#
## Not run: 
cmp.bs = compareBoot()

## End(Not run) 

[Package ssExtra version 0.1-2 Index]