Calculate All Summary Measures
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 variablesummarise_by
: A character vector of variables to group by.order_by
: A character vector of parameters to order by, defaults to all summarise_by
variables.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")
Useful links