Skip to content

EDI (Experimental Design and Inference) R package v1.0.1

Choose a tag to compare

@kapelner kapelner released this 15 Sep 06:31
· 829 commits to main since this release

Bug-fix and stabilization release. Full details in NEWS.md.

Breaking change

  • set_custom_randomization_statistic_function() / set_custom_randomization_statistic_cpp() are removed from every concrete estimator class. Use the new InferenceRandCustom class instead: InferenceRandCustom$new(des_obj, custom_randomization_statistic_function = function(y, w, dead) ...), then compute_rand_two_sided_pval() / compute_rand_confidence_interval().

New features

  • InferenceIncidGCompRiskRatio / InferenceIncidKKGCompRiskRatio gain subsampling and m-out-of-n bootstrap CIs and p-values.
  • get_local_EDI_optimization()'s hardware fingerprint now detects CPU/RAM on Windows and macOS, not just Linux.

Notable bug fixes

Twenty-plus fixes to inference classes across continuous, incidence, count, proportion, survival, and ordinal response types — most correcting genuine mis-calibration (wrong Type-I error / coverage), not just crashes. Highlights:

  • Randomization CI's bisection search used the wrong "conservative" fallback endpoint for an upper bound, silently collapsing several classes' upper bounds to the point estimate (confirmed 51-61% empirical coverage instead of nominal 95%).
  • InferenceSurvivalStratCoxPHRegr's and the KK-GLMM classes' score-test information matrices were fed unnegated/double-negated Hessians, making compute_score_two_sided_pval()/compute_score_confidence_interval() return NA on essentially every call.
  • Six ordinal-response classes extracted the last covariate's slope as the treatment coefficient instead of the first (treatment) column — silently testing the wrong covariate whenever other covariates were present.
  • The zero-inflated negative binomial kernel (fast_zinb.cpp) had a fixed-parameter off-by-one and an unpadded ZIP-limit score vector.
  • Five classes' Bayesian-bootstrap machinery discarded an already-computed per-replicate SE, always reporting NA and starving their studentized/BCa variants.
  • Bootstrap-family methods now refuse with an explicit error for DesignSeqOneByOne and its subclasses (except DesignSeqOneByOneBernoulli, where row resampling is actually valid) — the prior "merely conservative" documentation for sequential designs did not hold.
  • An OpenMP worker thread calling into R's interrupt/time-budget checks could crash the whole process (SIGABRT) instead of interrupting cleanly, under num_cores > 1. Both checks now no-op off the master thread.
  • SimulationFramework's mirai-based parallelization could hang indefinitely if a daemon died before connecting; daemon launch and collection are now deadline-bounded with a clear error instead of an unbounded wait.
  • Randomization CIs are no longer offered for the six Cox-family (log-hazard-ratio) survival classes — the generic randomization CI's delta axis is a log time ratio, incompatible with a log hazard ratio estimand, and was silently returning bounds that were not a valid CI for anything.

See NEWS.md for the complete list, including documentation updates.