.summary_table_4_4 {eq5dsuite}R Documentation

Summary wrapper for Table 4.4

Description

This internal function creates a summary of the data frame for Table 4.4. It groups the data by the variables specified in 'group_by' and calculates various summary statistics.

Usage

.summary_table_4_4(df, group_by)

Arguments

df

A data frame.

group_by

A character vector of names of variables by which to group the data.

Value

A data frame with the summary statistics.

Examples

df <- data.frame(group = c("A", "A", "B", "B"), 
                 utility = c(0.5, 0.7, 0.8, 0.9))
.summary_table_4_4(df, group_by = "group")

[Package eq5dsuite version 1.0.0 Index]