Description Usage Arguments Value Examples
The function returns the mean and the confidence interval for a numeric vector
1 | bootstrapped_summary(data, repeats = 1000)
|
data |
A numeric vector containing the values to be summarized |
repeats |
An integer indicating the number of bootstrap samples to be used |
A data.frame containing a column each for mean, lower 95 and upper 95
1 2 3 4 5 6 7 | library(dplyr)
test <- data.frame(group = rep(letters[1:2], each = 30),
dv = c(rnorm(30, 40, 4), rnorm(30,70,4)))
test %>%
group_by(group) %>%
do(bootstrapped_summary(.$dv))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.