Layer for categorical variable summaries including counts and percentages. Supports distinct subject counts and nested hierarchies.
Arguments
- target_var
Character vector of variable names to summarize
- by_vars
Character vector of grouping variables
- where
Filter expression (quosure or NULL)
- format_spec
Format specification for output
- label
Optional label for the layer
- metadata
Additional metadata
- distinct_by
Variable for distinct counting (default: USUBJID)
- include_pct
Logical, include percentages
- denoms_by
Variables to calculate denominators by
