multi_boot_standard | R Documentation |
Computes CI of bootstrapped mean of univariate data. NOTE: Bootstrapping functions will be computed over the grouping variables currently specified for the data frame.
multi_boot_standard(data, col, na.rm = FALSE, empirical_function,
statistics_functions, nboot = 1000)
data |
A data frame. |
col |
A string indicating the column of |
na.rm |
A logical indicating whether NAs should be dropped before
bootstrapping (defaults to |
empirical_function |
Deprecated. |
statistics_functions |
Deprecated. |
nboot |
The number of bootstrap samples to take (defaults to
|
## Mean and 95% confidence interval for 1000 samples from two different normal distributions
require(dplyr)
gauss1 <- data_frame(value = rnorm(1000, mean = 0, sd = 1), condition = 1)
gauss2 <- data_frame(value = rnorm(1000, mean = 2, sd = 3), condition = 2)
df <- bind_rows(gauss1, gauss2) %>% group_by(condition)
df %>% multi_boot_standard(col = "value")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.