Summarise multiply imputed LE8 scores with dplyr
Source:R/methods-summary.R
summarise.essential8_imputed_scores.RdThe summarise() method for scores from
score_le8_imputed(). Without expressions, it returns the pooled
statistics in summary(), one row per
measure and group. With expressions, it is ordinary dplyr on the stacked
data sets; add .imp to .by to summarise each imputation separately.
Usage
# S3 method for class 'essential8_imputed_scores'
summarise(.data, ..., .by = NULL, .groups = NULL)Arguments
- .data
An
essential8_imputed_scoresobject.- ...
Summary expressions. If any are supplied, the call is handled by
dplyr::summarise().- .by
<
tidy-select> Optional columns to group by for this summary.- .groups
Passed to
dplyr::summarise()when...is supplied. Otherwise ignored; the LE8 summary is always ungrouped.
Value
Without expressions, an ungrouped data frame with the grouping
columns, measure, and the pooled statistics: n, n_missing, mean,
std.error, conf.low, conf.high (95%), df, fmi, and the averaged
sd, min, q25, median, q75, and max. With expressions, the
result of dplyr::summarise().