Count event and subgroup summary, supports automatic parsing of fixed-effect syntax `(1|subgroup)` and multiple families.
count_event_by_glm(
formula,
data,
count_by_var = NULL,
var_subgroup = NULL,
decimal.percent = 1,
family = "binomial"
)
tibble with grouping columns and Metric column (rate or mean sd)
formula with response (0/1 or count or continuous) and optional fixed-effect `(1|subgroup)` term.
data.frame or survey.design
variable name to stratify by (string), default NULL
subgroup variable name (string); parsed from formula if not provided, default NULL
decimals for percent or mean/sd, default 1
family type: "gaussian", "binomial", "poisson", or "quasipoisson"