m-Out-of-n Bootstrap Functions

Functions and examples based on the m-out-of-n bootstrap suggested by Politis, D.N. and Romano, J.P. (1994) . Additionally there are functions to estimate the scaling factor tau and the subsampling size m. For a detailed description and a full list of references, see Dalitz, C. and Lögler, F. (2025) .


moonboot

This is an R package for m-out-of-n bootstrap that provides functions for

  • computation of confidence intervals
  • estimation of the scaling factor tau
  • different methods for estimating m

Usage

A typical usage is

# application of estimator to the subset indices
boot.stat <- function(dat, indices) {
  my.stat(dat[indices])
}

# apply m-out-of-n bootstrap
boot.out <- mboot(x, boot.stat, m=2*sqrt(length(x)))

# compute 95% confidence interval
ci <- mboot.ci(boot.out, type="basic")
print(ci)

Beware that the last command estimates the scaling factor, which can be quite unreliable. It is thus better to provide the scaling factor if it is known, e.g., for a root-n consistent estimator:

ci <- mboot.ci(boot.out, tau=function(n) { n^0.5 }, type="basic")

Installation

If you have cloned the repository to the directory moonboot, you can install it with

R CMD INSTALL moonboot

If you have downloaded a file release moonboot-X.Y.Z.tar.gz, you can install it with

R CMD INSTALL moonboot-X.Y.Z.tar.gz

If you want to remove the already installed package, you can uninstall it with

R CMD REMOVE moonboot

Reference

For details about the implemented methods and a comparative evaluation, see

Dalitz C. and Lögler F. (2025): "moonboot: An R Package Implementing m-out-of-n Bootstrap Methods." The R Journal 17/3, pp. 125-137 https://doi.org/10.32614/RJ-2025-031

Authors & Copyright

For licensing information, see the file LICENSE for details.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("moonboot")

2.0.1 by Christoph Dalitz, 10 months ago


Browse source code at https://github.com/cran/moonboot


Authors: Christoph Dalitz [aut, cre] , Felix Lögler [aut]


Documentation:   PDF Manual  


BSD 2-clause License + file LICENSE license


Imports methods, stats

Suggests testthat


See at CRAN