Function which summarizes dichotomous or binary variable by a named group
t1_binvar(data, .var, .group, .referent = "1", quietly = T)
| .var | Variable to be summarized |
|---|---|
| .group | Group to summarize over |
| .referent | If variable logical or numeric, default reported is 1/"T", otherwise specify here. |
| quietly | If FALSE, function will report some internal steps |
| df | Dataframe |
List of length = groups
Supply a dataframe, a variable to summarize, a group variable