calc_summary_measures {EpiNow2} | R Documentation |
Calculate All Summary Measures
Description
Calculate summary statistics and credible intervals from a
<data.frame>
by
group.
Usage
calc_summary_measures(
samples,
summarise_by = NULL,
order_by = NULL,
CrIs = c(0.2, 0.5, 0.9)
)
Arguments
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. |
Value
A data.table containing summary statistics by group.
Examples
samples <- data.frame(value = 1:10, type = "car")
# default
calc_summary_measures(samples)
# by type
calc_summary_measures(samples, summarise_by = "type")
[Package EpiNow2 version 1.5.2 Index]