pbjBoot: Performs (semi)Parametric Bootstrap Joint ((s)PBJ) Inference

View source: R/pbjBoot.R

pbjBootR Documentation

Performs (semi)Parametric Bootstrap Joint ((s)PBJ) Inference

Description

Performs (semi)Parametric Bootstrap Joint ((s)PBJ) Inference

Usage

pbjBoot(
  sqrtSigma,
  rboot = function(n) {
     (2 * stats::rbinom(n, size = 1, prob = 0.5) - 1)
 },
  null = TRUE,
  method = c("wild", "permutation", "nonparametric")
)

Arguments

sqrtSigma

list from statmap object

rboot

a function that draws a bootstrapped sample. Should return an n vector. Defaults to Rademacher random variable.

null

Is this a simulation under the null hypothesis?

method

character, method to use for resampling procedure. Wild bootstrap, permutation, or nonparametric

Value

Returns vector of test statistics computed from the bootstrapped sample.


simonvandekar/pbj documentation built on Nov. 3, 2023, 9:33 a.m.