Helper function to take output from surge_summary and produce a table of data for display in the surge tabs.

surge_table(model_output, column, column_name)

Arguments

model_output

output from run_model() and get_model_output()

column

the column in `model_output` to calculate the summary for, either "group", "condition" or "treatment"

column_name

what to name the column in the new table

Value

a tibble with more descriptive column names