View source: R/calcPvalFromBS.R
calcPvalFromBS | R Documentation |
The calculation of the p-value that accounts for the finite sample size uses a formula from Davison and Hinkley (1997), Bootstrap Methods and their Application, chapter 4, p. 161.
calcPvalFromBS(
testStat,
bsStat,
corrected = FALSE,
alternative = c("greater", "less")
)
testStat |
a numeric, test statistic. |
bsStat |
a numeric vector with statistic from bootstrapping. |
corrected |
a logical; if TRUE, calculates a p-value that accounts for the finite sample size; default FALSE. |
alternative |
either of "less" or "greater"; default "greater" |
a scalar with the p-value
library(ARCOS)
ARCOS::calcPvalFromBS(2, rnorm(1000))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.