Repository navigation
EDI (Experimental Design and Inference) R package v1.0.1
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 newInferenceRandCustomclass instead:InferenceRandCustom$new(des_obj, custom_randomization_statistic_function = function(y, w, dead) ...), thencompute_rand_two_sided_pval()/compute_rand_confidence_interval().
New features
InferenceIncidGCompRiskRatio/InferenceIncidKKGCompRiskRatiogain 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, makingcompute_score_two_sided_pval()/compute_score_confidence_interval()returnNAon 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
NAand starving their studentized/BCa variants. - Bootstrap-family methods now refuse with an explicit error for
DesignSeqOneByOneand its subclasses (exceptDesignSeqOneByOneBernoulli, 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, undernum_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
deltaaxis 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.
- Documentation: https://kapelner.github.io/EDI/
- Python bindings to the same C++ kernels: https://pypi.org/project/edi_kernels/