Wrapper to calculate summary mean with 95% confidence interval
Wrapper to calculate summary mean with 95% confidence interval
This internal function calculates summary mean and 95% confidence interval of the utility variable, which can also be grouped. The function is used in Figures 4.2-4.4.
.summary_mean_ci(df, group_by)
Arguments
df: A data frame containing a utility column.
group_by: A character vector of column names to group by.
Returns
A data frame with the mean, lower bound, and upper bound of the 95