formula_from_vars function

Generate model formula by specifying which variables have totals or not.