Skip to contents

Calls 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 its interval and p-value) in one place.

Usage

tteenrollment_combined_combine(
  results,
  rates_slot,
  irr_slot,
  descriptions = NULL,
  conf_level = 0.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.

conf_level

Numeric(1), passed to tteenrollment_irr_combine(). Default: 0.95.

Value

A wide data.table with one row per ETT.

Details

The returned data.table still uses the generic _Intervention/_Comparator column suffixes from tteenrollment_rates_combine().