Bootstrap Null Hypothesis Significance Test

bootstrap_NHST(
  bmbstats_object,
  estimator,
  null_hypothesis = 0,
  test = "two.sided"
)

Arguments

bmbstats_object

Object of class bmbstats

estimator

Name of the estimator from the bmbstats_object

null_hypothesis

Numeric scalar indicating null hypothesis value for estimator. Default is 0

test

Character string specifying the type of NHST, must be one of "two.sided" (default), "greater" or "less". Default is "two.sided"

Value

bmbstats_NHST object

Examples

mean_NHST <- bootstrap_NHST( describe_data(rnorm(100)), "mean" )
#> Bootstraping: 2000 resamples
#> Calculating confidence intervals...
#> Warning: boot::boot.ci returned error or NULL when estimating CIs for min estimator. Returning NAs for upper and lower CIs
#> Done!
mean_NHST
#> Null-hypothesis significance test for the `mean` estimator #> Bootstrap result: mean=-0.08, 95% CI [-0.293, 0.129] #> H0=0, test: two.sided #> p=0.4405
plot(mean_NHST)
#> Picking joint bandwidth of 0.0206