Creating a grouping matrix
create_grouping_matrix(formula, data, include_overall)
a RHS formula
list where each element corresponds to a term in the formula
an indicator of whether to include an "overall" grouping (i.e. a row in the matrix with no 1s).