
Combine rates + IRR outputs into a single wide publication-ready table
Source:R/r6_tteenrollment.R
tteenrollment_combined_combine.RdCalls [tteenrollment_rates_combine()] and [tteenrollment_irr_combine()] with shared `descriptions`, then left-joins on `ett_id` so that each row carries per-arm event counts, person-years, rates, and the incidence rate ratio (with 95
Arguments
- results
Named list of per-ETT result lists.
- rates_slot
Character scalar, name of the slot with `$rates()` output (e.g. `"rates_pp_trunc"`).
- irr_slot
Character scalar, name of the slot with `$irr()` output (e.g. `"irr_pp_trunc"`).
- descriptions
Optional named character vector mapping `ett_id` to descriptions.
Details
The returned data.table still uses the generic `_Intervention`/`_Comparator` column suffixes from [tteenrollment_rates_combine()]. The workbook writer in `.write_combined_rates_irr()` applies `.rename_treatment_columns()` afterwards when the featured ETTs share a single enrollment.
See also
Other tte_methods:
tteenrollment_irr_combine(),
tteenrollment_rates_combine(),
tteenrollment_rbind()