ci_boot_df | R Documentation |
Calculate mean with confidence intervals from boostrapped samples.
ci_boot_df(.data, .summary_var, ..., ci = 0.95, groups_col = FALSE, B = 1000)
.data |
A data frame |
.summary_var |
Variable that is being summarized |
... |
Grouping variable(s) |
ci |
Confidence interval. Defaults to 0.95 |
groups_col |
List grouping variable under column named 'group'. Defaults to FALSE. |
B |
Number of bootstrap resamples. Defaults to 1000. |
A data frame with variables mean_{{.summary_var}}
, ci_low
, ci_high
, sd
, n
.
If the data frame is grouped, grouping variable will also be listed.
Hmisc::smean.cl.boot()
which this function utilizes
ci_boot_df(mtcars, mpg, cyl, gear)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.