Bootstrap minimum effect tests (METs)

bootstrap_MET(
  bmbstats_object,
  estimator,
  SESOI_lower = 0,
  SESOI_upper = 0,
  alpha = 0.05
)

Arguments

bmbstats_object

Object of class bmbstats

estimator

Name of the estimator from the bmbstats_object

SESOI_lower

Lower smallest effect size of interest threshold

SESOI_upper

Upper smallest effect size of interest threshold

alpha

Numeric value for the alpha (Type I error). Default is 0.05

Value

bmbstats_MET object

Examples

mean_MET <- bootstrap_MET( describe_data(rnorm(10, 100, 20)), estimator = "mean", SESOI_lower = 95, SESOI_upper = 105, alpha = 0.05 )
#> 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_MET
#> Minimum effect tests for the `mean` estimator #> Bootstrap result: mean=105.829, 95% CI [95.361, 116.259] #> SESOI: [95, 105], alpha=0.05 #> #> Test p.value #> inferiority 0.9775 #> non-superiority 0.5655 #> equivalence 0.5655 #> non-inferiority 0.0225 #> superiority 0.4345 #> #> Final inference: Not-Lower
plot(mean_MET)