Skip to content

boot

1.3-32Package record

Bootstrap Functions

348packages dependsuggested by 106
979.3Kdownloads / year
2.5%test coverage
12/13flavors OK

Overview

About

Functions and datasets for bootstrapping from the book "Bootstrap Methods and Their Application" by A. C. Davison and D. V. Hinkley (1997, CUP), originally written by Angelo Canty for S.

Install

Health

CRAN checks
1ERROR12OK
Check messages
ERRORexamplesr-devel-linux-x86_64-debian-gcc
Running examples in ‘boot-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: censboot
> ### Title: Bootstrap for Censored Data
> ### Aliases: censboot cens.return
> ### Keywords: survival
> 
> ### ** Examples
> 
> library(survival)

Attaching package: ‘survival’

The following object is masked from ‘package:boot’:

    aml

> # Example 3.9 of Davison and Hinkley (1997) does a bootstrap on some
> # remission times for patients with a type of leukaemia.  The patients
> # were divided into those who received maintenance chemotherapy and 
> # those who did not.  Here we are interested in the median remission 
> # time for the two groups.
> data(aml, package = "boot") # not the version in survival.
> aml.fun <- function(data) {
+      surv <- survfit(Surv(time, cens) ~ group, data = data)
+      out <- NULL
+      st <- 1
+      for (s in 1:length(surv$strata)) {
+           inds <- st:(st + surv$strata[s]-1)
+           md
...[truncated]...
arguments to min; returning Inf
> 
> # Now for an example where a cox regression model has been fitted
> # the data we will look at the melanoma data of Example 7.6 from 
> # Davison and Hinkley (1997).  The fitted model assumes that there
> # is a different survival distribution for the ulcerated and 
> # non-ulcerated groups but that the thickness of the tumour has a
> # common effect.  We will also assume that the censoring distribution
> # is different in different age groups.  The statistic of interest
> # is the linear predictor.  This is returned as the values at a
> # number of equally spaced points in the range of interest.
> data(melanoma, package = "boot")
> library(splines)# for ns
> mel.cox <- coxph(Surv(time, status == 1) ~ ns(thickness, df=4) + strata(ulcer),
+                  data = melanoma)
> mel.surv <- survfit(mel.cox)
Error in a$specials[[i]] : subscript out of bounds
Calls: survfit ... survfit.coxph -> model.matrix.coxph -> delete.response -> off
Execution halted

CRAN check page ↗

Slowest check: 2.4 min · r-devel-windows-x86_64
Status changes
  • ERROR12 OK, 1 ERROR2026-10-24
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.3-32
READMENoVignettesNoNEWSNoCitation fileYes · cites a publicationWebsitenot declared in DESCRIPTION
Help pages
88 (1 internal)
Examples that run
100%25 run in a plain check
Exported functions with examples
72%
Documented parameters
89%
Return-value docs
97%
Help pages citing references
84%

Downloads

979.3K
CRAN downloads in the past year
Rank #377 · ~2.7K/day · ~81.6K/mo
Daily download trend is not available in this view yet.
77.1K30 days
239.9K90 days
979.3K1 year
Compare downloads with other packages →
Also on82.5K r2u5.4K autocran471.2K conda_forge788 c2d4u

Dependencies

Declared dependencies
0 external dependencies (excludes base and recommended)

Installing boot adds no packages beyond those that come with R.

Depends (3)
R >= 3.0.0graphicsstats
Imports (0)
none
LinkingTo (0)
none
Suggests (2)
MASSsurvival
Enhances (0)
none

Datasets

People & History

People (3)
Contributor, Maintainer since 1.3-29 (2024) · added in 1.3-29
minor bug fixes
Author · added in 1.3-4
author of original code for S
Author, Translator · added in 1.3-4
conversion to R, maintainer 1999--2022, author of parallel support

Previously maintained by Brian Ripley (1.2-1 to 1.3-28.1).

Listed in earlier versions (2)
Angelo Canty. R port by Brian Ripley.
no longer listed · 1.1-3 to 1.3-2
Angelo Canty. R port by Brian Ripley. Note that maintainers are not available to give advice on using a package they did not author.
no longer listed · 1.3-3
Releases (78)

Pick two releases to compare their code metrics.

Show 97 earlier eventsHide 97 earlier events

Package metadata

First published
1999-04-08
Total releases
78 / 27 yrs
License
Unlimited
Minimum R
≥ 3.0.0
Bundled data
87 KB / 50 files
Download size
233 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("boot")

The package provides a citation file that builds its entry when R runs it. Run citation() to see it.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for boot version 1.3-32 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy