Description Usage Arguments Details Value Examples
A very fast implementation of the basic nonparametric bootstrap for obtaining confidence limits for the population mean without assuming normality.
1 2 3 4 5 6 7 8 | ci_mean_boot(
y,
conf_level = 0.95,
repetitions = 2000,
na.rm = TRUE,
resampled_means = FALSE,
return_df = TRUE
)
|
y |
(numeric) A numeric vector from which |
conf_level |
(number) Confidence level. Number from 0 to 1. Default 0.95. |
repetitions |
(integer) Number of bootstrap resamples. |
na.rm |
(logical) If |
resampled_means |
(logical) If |
return_df |
(logical) If |
The function is based on code of function Hmisc::smean.cl.boot()
from package Hmisc.
An object (data frame or matrix) with a point estimate and confidence interval of mean.
1 2 3 4 5 6 | set.seed(111555)
ci_mean_boot(1:60)
set.seed(999555)
y <- rnorm(35, 10, 5)
ci_mean_boot(y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.