Bootstrap Functions
Overview
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
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- ERROR12 OK, 1 ERROR2026-10-24
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- 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
Dependencies
Installing boot adds no packages beyond those that come with R.
Show the 48 most downloaded dependentsHide the 48 most downloaded dependents
and 300 more dependents and 106 packages that suggest it on CRAN ↗
Code & Tests
Datasets
People & History
Previously maintained by Brian Ripley (1.2-1 to 1.3-28.1).
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.3-32Latest
- RR 4.5.0 released · 2025-04-11
- 1.3-312024-08-28 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 1.3-302024-02-26 · diff ↗
- 1.3-292024-02-19 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 1.3-28.12022-11-22 · diff ↗
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 1.3-282021-05-03 · diff ↗
- 1.3-272021-02-12 · diff ↗
- 1.3-262021-01-25 · diff ↗
- 1.3-252020-04-26 · diff ↗
- RR 4.0.0 released · 2020-04-24
Show 97 earlier eventsHide 97 earlier events
- 1.3-242019-12-20 · diff ↗
- 1.3-232019-07-05 · diff ↗
- 1.3-222019-04-26 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 1.3-212019-03-01 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 1.3-202017-07-30 · diff ↗
- RR 3.4.0 released · 2017-04-21
- 1.3-192017-02-11 · diff ↗
- RR 3.3.0 released · 2016-05-03
- 1.3-182016-02-23 · diff ↗
- 1.3-172015-06-29 · diff ↗
- 1.3-162015-06-07 · diff ↗
- RR 3.2.0 released · 2015-04-16
- 1.3-152015-02-24 · diff ↗
- 1.3-142015-01-10 · diff ↗
- 1.3-132014-09-30 · diff ↗
- RR 3.1.0 released · 2014-04-10
- 1.3-112014-03-28 · diff ↗
- 1.3-102014-03-08 · diff ↗
- 1.3-92013-04-03 · diff ↗
- RR 3.0.0 released · 2013-04-03
- 1.3-82013-02-09 · diff ↗
- 1.3-72012-10-12 · diff ↗
- 1.3-62012-10-11 · diff ↗
- 1.3-52012-06-27 · diff ↗
- RR 2.15.0 released · 2012-03-30
- 1.3-42012-03-12 · diff ↗
- 1.3-32011-11-02 · diff ↗
- RR 2.14.0 released · 2011-10-31
- 1.3-22011-06-09 · diff ↗
- 1.3-12011-05-24 · diff ↗
- RR 2.13.0 released · 2011-04-13
- RR 2.12.0 released · 2010-10-15
- 1.2-432010-09-25 · diff ↗
- RR 2.11.0 released · 2010-04-22
- 1.2-422010-04-02 · diff ↗
- RR 2.10.0 released · 2009-10-26
- 1.2-412009-10-15 · diff ↗
- 1.2-402009-10-07 · diff ↗
- 1.2-392009-09-04 · diff ↗
- 1.2-382009-08-05 · diff ↗
- 1.2-372009-06-16 · diff ↗
- RR 2.9.0 released · 2009-04-17
- 1.2-362009-03-12 · diff ↗
- 1.2-352009-01-04 · diff ↗
- RR 2.8.0 released · 2008-10-20
- 1.2-342008-09-09 · diff ↗
- 1.2-332008-05-05 · diff ↗
- RR 2.7.0 released · 2008-04-22
- 1.2-322008-03-30 · diff ↗
- 1.2-312008-02-18 · diff ↗
- 1.2-302007-10-04 · diff ↗
- RR 2.6.0 released · 2007-10-03
- 1.2-292007-09-01 · diff ↗
- 1.2-282007-06-13 · diff ↗
- RR 2.5.0 released · 2007-04-24
- 1.2-272006-11-30 · diff ↗
- RR 2.4.0 released · 2006-10-03
- 1.2-262006-09-07 · diff ↗
- 1.2-252006-07-27 · diff ↗
- RR 2.3.0 released · 2006-04-24
- 1.2-242005-12-09 · diff ↗
- RR 2.2.0 released · 2005-10-06
- 1.2-232005-07-28 · diff ↗
- RR 2.1.0 released · 2005-04-18
- 1.2-222005-02-02 · diff ↗
- 1.2-212005-01-21 · diff ↗
- 1.2-202004-11-03 · diff ↗
- 1.2-192004-10-04 · diff ↗
- RR 2.0.0 released · 2004-10-04
- 1.2-182004-08-04 · diff ↗
- 1.2-172004-04-21 · diff ↗
- 1.2-162004-04-12 · diff ↗
- RR 1.9.0 released · 2004-04-12
- 1.2-152003-10-23 · diff ↗
- 1.2-142003-10-08 · diff ↗
- RR 1.8.0 released · 2003-10-08
- 1.2-132003-04-16 · diff ↗ ·
added 36 exports
abc.ci, boot, boot.array, boot.ci, censboot, control, corr, cum3, cv.glm, EEF.profile, EL.profile, empinf, envelope, exp.tilt, freq.array, glm.diag, glm.diag.plots, imp.moments, imp.prob, imp.quantile, imp.weights, inv.logit, jack.after.boot, k3.linear, lik.CI, linear.approx, logit, nested.corr, norm.ci, saddle and 6 more - RR 1.7.0 released · 2003-04-16
- 1.2-102002-12-13 · diff ↗
- 1.2-92002-11-08 · diff ↗
- RR 1.6.0 released · 2002-10-01
- RR 1.5.0 released · 2002-04-29
- 1.2-82002-04-28 · diff ↗
- 1.2-72002-01-29 · diff ↗
- 1.2-62001-11-27 · diff ↗
- 1.2-52001-08-22 · diff ↗
- 1.2-42001-08-09 · diff ↗
- 1.2-32001-06-22 · diff ↗
- 1.2-22001-05-14 · diff ↗
- 1.2-12001-03-04 · diff ↗
- 1.1-72000-12-06 · diff ↗
- 1.1-62000-11-27 · diff ↗
- 1.1-52000-02-07 · diff ↗
- 1.1-41999-11-22 · diff ↗
- 1.1-31999-04-08
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.
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.