bootstrap_compute_p: Compute p-value from a bootstrap sample of test statistics.

View source: R/bootstrap_compute_p.R

bootstrap_compute_pR Documentation

Compute p-value from a bootstrap sample of test statistics.

Description

Given bootstrap estimates of a test statistic, compute a p-value (always the "two-sided" p-value).

Usage

bootstrap_compute_p(bootobj)

Arguments

bootobj

vector containing the bootstrap test statistics returned by a workhorse bootstrap function under the null hypothesis:

  • bootstrap_residual_null

  • bootstrap_parametric_linear_null

  • bootstrap_parametric_null

  • bootstrap_case_null

There should be one row for each parameter and each column contains a bootstrap estimate.

Value

data.frame containing an ANOVA table comparing the two models. The p-value is determined from the bootstrap test statistics.

See Also

anova


reyesem/IntroAnalysis documentation built on March 29, 2025, 3:29 p.m.