Package: ratecalib 0.3.0

Kunxiang Ma

ratecalib: Calibration Weighting to Multiple Subgroup Pass-Rate Targets

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>.

Authors:Kunxiang Ma [aut, cre]

ratecalib_0.3.0.tar.gz
ratecalib_0.3.0.tar.gz(r-4.7-any)ratecalib_0.3.0.tar.gz(r-4.6-any)
ratecalib_0.3.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
ratecalib/json (API)

# Install 'ratecalib' in R:
install.packages('ratecalib', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/makunxiang-cmd/ratecalib/issues

On CRAN:

Conda:

1.00 score 13 exports 6 dependencies

Last updated from:ff20222d1d. Checks:4 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK125
source / vignettesOK173
linux-release-x86_64OK119
wasm-releaseOK133

Exports:calibrate_from_excelcalibrate_pass_ratescalibrate_ratescalibrate_replicate_weightscalibration_diagnosticscalibration_feasibilitycheck_calibration_dataexample_rate_dataexport_calibration_xlsxmake_rate_targetsread_calibration_dataread_targets_xlsxreplicate_variance

Dependencies:clilatticeMatrixosqpRcppS7

Readme and manuals

Help Manual

Help pageTopics
Calibrate directly from an Excel workbookcalibrate_from_excel
Calibrate weights to multiple pass-rate targetscalibrate_pass_rates
One-step pass-rate weight calibrationcalibrate_rates
Re-calibrate replicate weightscalibrate_replicate_weights print.replicate_calibration
Extract calibration diagnosticscalibration_diagnostics
Pre-solve target feasibility checkscalibration_feasibility print.ratecalib_feasibility
Pre-calibration data checkscheck_calibration_data print.ratecalib_check
Generate example dataexample_rate_data
Export a calibration result to an Excel workbookexport_calibration_xlsx
Build a pass-rate target tablemake_rate_targets
Methods for pass_rate_calibration objectsas.data.frame.pass_rate_calibration pass_rate_calibration-methods plot.pass_rate_calibration print.pass_rate_calibration print.summary_pass_rate_calibration summary.pass_rate_calibration weights.pass_rate_calibration
Read calibration sample data from an Excel workbookread_calibration_data
Read a pass-rate target table from an Excel workbookread_targets_xlsx
Replicate-weight variance of a calibrated estimatereplicate_variance