Skip to contents

retrogroup 0.0.3

Breaking changes

  • group_data_summary() takes the number of events (events) and the hazard ratio on the natural scale (hazard_ratio) instead of log_hazard_ratio and standard_error. The event counts must be non-negative integers with 0 <= e_k <= n_k, and the event counts of every subgroup variable must add up to the number of events in the patient-level data.
  • group_example_summary() and group_analysis_summary() report events and hazard_ratio instead of log_hazard_ratio and standard_error. group_example_summary() also reports the bounds lower and upper of the 95% confidence interval of each hazard ratio.
  • The optimization loss is now the Euclidean distance between the observed and assumed hazard ratios on the linear scale, without standard errors. It no longer has event fraction terms, so optimization does not steer the event counts. tolerance is on the linear scale of the hazard ratio.
  • The model of group_analysis_probability() now includes a prognostic effect for each subgroup level, estimated from the assumed event counts by fast vectorized root finding (vignette("estimates")). The estimation clamps each event count to between 1/2 and n_k - 1/2, so levels with 0 or n_k events are allowed. The baseline cumulative hazard is now a modified Breslow estimate that uses the prognostic effects, instead of the Nelson-Aalen estimate of the control arm.
  • The Cox fit behind group_analysis_summary() and the optimization loss is now a C99 implementation of the Efron partial likelihood (Efron 1977) for one binary covariate, instead of survival::coxph.fit(). It agrees with survival::coxph(ties = "efron") up to rounding error and makes both optimizers several times faster. The hazard ratio is NA whenever the partial likelihood has no finite maximum, where survival::coxph() would instead stop at a large finite estimate with a warning.
  • The default iterations of group_optimize_constrained() and group_optimize_unconstrained() is now 10000 instead of 1000. Iterations are cheap, and 1000 was often too few for the colon cancer example to converge.
  • group_sample_constrained() and group_optimize_constrained() preserve the number of patients in each subgroup level.
  • Each iteration of group_optimize_unconstrained() now takes a flip step with probability 1/2 and a swap step otherwise, instead of always taking a flip step. With flips alone, the search often stalled in a local minimum above the tolerance, for example for node4 in the colon cancer example. Results for a given seed differ from previous versions.

New features

  • Add group_data_events() to approximate subgroup event counts from the confidence intervals of the hazard ratios (Schoenfeld 1983; Parmar et al. 1998). It takes the lower and upper bounds of each interval and uses the full width of the interval on the log scale, so it does not use the hazard ratios themselves. It rounds and reconciles the approximations so they satisfy the requirements of group_data_summary(). group_data_summary(events = NULL) prepares its input.
  • Add the appendix vignette “Approximating event counts using confidence intervals of assumed hazard ratios”.

Documentation

  • Clarify that the event counts carry some general prognostic information, but the timing of events within subgroup levels is not reproduced, and the statistician who uses a reconstructed dataset is responsible for the consequences.
  • Add the verification vignette “Prognostic benchmarks”. It tests how well sampled and optimized subgroups recover the true prognostic hazard ratios of the colon cancer subgroups.

retrogroup 0.0.2

retrogroup 0.0.1

  • First version.