CRAN-Published R Package for Modern Resampling Methods
modernBoot is a CRAN-published R package providing modern, efficient, and computationally fast bootstrap resampling techniques for robust statistical inference.
future and future.apply packages.The stable version of modernBoot is available from CRAN:
install.packages("modernBoot")
The development version can be installed from GitHub:
install.packages("remotes")
# remotes::install_github("ikrakib/modernBoot")
install.packages("modernBoot", repos = c('https://ikrakib.r-universe.dev', 'https://cloud.r-project.org'))
text
library(modernBoot)
Generate sample data
set.seed(123)
data <- rnorm(100, mean = 5, sd = 2)
Calculate Bias-Corrected and Accelerated (BCa) bootstrap CI
result_ci <- boot_ci(
data,
statistic = mean,
R = 2000,
ci = "bca"
)
print(result_ci)
Perform a bootstrap hypothesis test
test_result <- boot_test(data, statistic = mean, null_value = 5.5, R = 2000)
print(test_result)
text
boot_ci(): The primary function for bootstrap confidence intervals (percentile, BCa, bootstrap-t).boot_ci_quantile(): Specialized function for quantile-based CIs.boot_test(): Performs bootstrap-based hypothesis tests.boot_pvalue(): Calculates bootstrap p-values.bootstrap_sample(): Core function for generating bootstrap samples.stratified_boot(): For stratified sampling designs.block_boot(): For time-series and clustered data.For detailed examples and function descriptions, see the package manual and vignettes: View the main vignette vignette("modernBoot")
Get help for a specific function ?boot_ci
text
To cite modernBoot in research, run:
citation("modernBoot")
Current CRAN version: 0.1.1
Package DOI: 10.32614/CRAN.package.modernBoot
text
MIT License. See the LICENSE file for details.
Ibrahim Kholil Rakib
Email: ikrakib1010@gmail.com
GitHub: @ikrakib
LinkedIn: Ibrahim Kholil Rakib