Skip to content

Fix numerical baseline checks across numerical environments - #15

Merged
mdcattaneo merged 1 commit into
mainfrom
maintenance/rdmulti-numerical-ci-20261024
Oct 24, 2026
Merged

mdcattaneo merged 1 commit into
mainfrom
maintenance/rdmulti-numerical-ci-20261024

Conversation

@mdcattaneo

Copy link
Copy Markdown
Member

Summary

The numerical baseline checks fail with current rdrobust calculations because their bandwidth tolerances are tighter than the observed numerical variation. Allow a relative tolerance of 1e-6 for the historical bandwidth baselines in Python and R, and align the affected R p-value comparison with the Python relative tolerance. Retain the saved values and all other checks.

Implementation

  • R
  • Python
  • Stata
  • Documentation
  • Repository infrastructure

Checks

Python: all three numerical contracts pass; source and wheel builds succeed. R: numerical contracts pass, source build succeeds, and R CMD check --no-manual returns Status: OK. Separate comparisons of the cutoff and pooled estimates, bandwidths, p-values, and sample counts agree with direct rdrobust calls in Python and R at a relative tolerance of 1e-12 when options match.

Notes

The change is limited to the two existing numerical test files. Package implementation and statistical formulas are unchanged.

@mdcattaneo
mdcattaneo merged commit 001e068 into main Oct 24, 2026
3 checks passed
@mdcattaneo
mdcattaneo deleted the maintenance/rdmulti-numerical-ci-20261024 branch October 24, 2026 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant