This internal function creates a summary of the data frame for Table 4.3. It groups the data by the variables specified in group_by and calculates various summary statistics.
.summary_table_4_3(df, group_by)
Arguments
df: A data frame.
group_by: A character vector of names of variables by which to group the data.