Statistical computing · R

calibcheck

GitHub release v0.1.0

Hurcheson Asante Ofori · Author and maintainer

An open-source R package that audits whether chosen calibration targets are attainable and separates unavoidable margin discrepancy from the error in supplied weights.

My contribution

I developed and maintain the package, its feasibility diagnostics, documentation and worked examples.

Methods

  • Linear programming
  • Primal and dual residual bounds
  • Rational certificate checks
  • Calibration weight diagnostics
When the calibration targets cannot all be attained

Maximum absolute margin error in percentage points, from the package's public synthetic example. Lower is better.

Best attainable40 pp
Supplied weights80 pp
Post-processed weights72 pp

The example's estimator reports convergence, even though its supplied weights miss a target by 80 percentage points. The attainable bound is 40 points. This is an illustrative example, not a benchmark on real data.

Source: package quick start

Scope and status

Designed for binary margin matrices and normalized nonnegative weights with optional closed box constraints. Exact verification is restricted to eligible unrestricted rational targets; numerical bounds are not exact bounded certificates. GitHub release does not imply CRAN acceptance.

Resources