Package: ratecalib
Type: Package
Title: Calibration Weighting to Multiple Subgroup Pass-Rate Targets
Version: 0.3.0
Authors@R: person("Kunxiang", "Ma", email = "mkx07080412@gmail.com", role = c("aut", "cre"))
Description: Calibration weighting for binary-outcome pass rates against
    multiple overlapping subgroup targets. Adjusts initial positive weights
    so that the overall pass rate and subgroup pass rates approach (soft mode)
    or exactly match (exact mode) given targets, while preserving the initial
    weight structure and population margins. Provides a one-step interface,
    pre-solve data checks, target-table construction, effective sample size
    and design-effect diagnostics, and example data. The solver works on a
    bounded convex quadratic program over demographic-cell-by-outcome
    aggregates for efficiency on large samples. Methods follow the calibration
    approach of Deville and Saerndal (1992) <doi:10.1080/01621459.1992.10475217>.
License: MIT + file LICENSE
URL: https://github.com/makunxiang-cmd/ratecalib
BugReports: https://github.com/makunxiang-cmd/ratecalib/issues
Encoding: UTF-8
Depends: R (>= 4.1.0)
Imports: Matrix, methods, osqp, stats
Suggests: testthat (>= 3.0.0), openxlsx
Config/testthat/edition: 3
RoxygenNote: 8.0.0
NeedsCompilation: no
Packaged: 2026-06-21 15:50:54 UTC; makunxiang
Author: Kunxiang Ma [aut, cre]
Maintainer: Kunxiang Ma <mkx07080412@gmail.com>
Repository: CRAN
Date/Publication: 2026-06-25 15:10:02 UTC
