Bootstrap p-Values

Computation of bootstrap p-values through inversion of confidence intervals, including convenience functions for regression models and tests of location.


boot.pval

This R package provides functions for computing bootstrap p-values based on boot objects, and convenience functions for bootstrap confidence intervals and p-values for various regression models.

Installation

To install the package from CRAN:

install.packages("boot.pval")

To install the development version from Github:

library(devtools)
install_github("mthulin/boot.pval")

Features

boot.pval can be used to:

Background

p-values can be computed by inverting the corresponding confidence intervals, as described in Section 14.2 of Thulin (2024) and Section 3.12 in Hall (1992). This package contains functions for computing bootstrap p-values in this way. The approach relies on the fact that:

  • The p-value of the two-sided test for the parameter theta is the smallest alpha such that theta is not contained in the corresponding 1-alpha confidence interval,
  • For a test of the parameter theta with significance level alpha, the set of values of theta that aren't rejected by the two-sided test (when used as the null hypothesis) is a 1-alpha confidence interval for theta.

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("boot.pval")

0.7.1 by Måns Thulin, 7 days ago


https://github.com/mthulin/boot.pval, https://mthulin.github.io/boot.pval/


Report a bug at https://github.com/mthulin/boot.pval/issues


Browse source code at https://github.com/cran/boot.pval


Authors: Måns Thulin [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports boot, Rdpack, car, stats

Suggests survival, lme4, rms, gt, flextable, knitr, rmarkdown, testthat


Imported by mcount, reverseR.


See at CRAN