Validation
pyrbmi maintains strict numerical parity with R's rbmi package, the reference implementation for regulatory submissions.
Validation Strategy
Our validation approach follows FDA/EMA guidance on software validation for clinical trials:
- Unit Tests: All functions have unit tests with ≥90% coverage
- R Parity Tests: Numerical output compared against R
rbmion identical datasets - Reference Datasets: Tests use publicly available or synthetic datasets with known properties
- Tolerance Criteria: Statistical results match within machine precision (1e-10 relative)
R Parity Testing
The R parity test suite runs weekly against the latest R rbmi release:
Test Coverage
| Component | R Test Coverage |
|---|---|
| MAR imputation | ✅ |
| J2R imputation | ✅ |
| CR imputation | ✅ |
| CIN imputation | ✅ |
| LMCF imputation | ✅ |
| Rubin's rules pooling | ✅ |
| MMRM covariance structures | ✅ |
Automated Validation
The validation workflow runs:
- Weekly: Against latest R
rbmifrom CRAN - On PR: When R-related code changes
- Results: Published as workflow artifacts
See R Parity Report for the latest validation results.
Validation Report
The full validation report (v0.7.0 milestone) will include:
- Numerical comparison tables
- Tolerance analysis
- Edge case documentation
- Regulatory submission notes
Last updated: [Placeholder for automated report]