calc_summary_measures | R Documentation |
Calculate summary statistics and credible intervals from a <data.frame>
by
group.
calc_summary_measures(
samples,
summarise_by = NULL,
order_by = NULL,
CrIs = c(0.2, 0.5, 0.9)
)
samples |
A data.table containing at least a value variable |
summarise_by |
A character vector of variables to group by. |
order_by |
A character vector of parameters to order by, defaults to
all |
CrIs |
Numeric vector of credible intervals to calculate. |
A data.table containing summary statistics by group.
samples <- data.frame(value = 1:10, type = "car")
# default
calc_summary_measures(samples)
# by type
calc_summary_measures(samples, summarise_by = "type")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.