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:
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
Last updated from:ff20222d1d. Checks:4 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 125 | ||
| source / vignettes | OK | 173 | ||
| linux-release-x86_64 | OK | 119 | ||
| wasm-release | OK | 133 |
Exports:calibrate_from_excelcalibrate_pass_ratescalibrate_ratescalibrate_replicate_weightscalibration_diagnosticscalibration_feasibilitycheck_calibration_dataexample_rate_dataexport_calibration_xlsxmake_rate_targetsread_calibration_dataread_targets_xlsxreplicate_variance
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Calibrate directly from an Excel workbook | calibrate_from_excel |
| Calibrate weights to multiple pass-rate targets | calibrate_pass_rates |
| One-step pass-rate weight calibration | calibrate_rates |
| Re-calibrate replicate weights | calibrate_replicate_weights print.replicate_calibration |
| Extract calibration diagnostics | calibration_diagnostics |
| Pre-solve target feasibility checks | calibration_feasibility print.ratecalib_feasibility |
| Pre-calibration data checks | check_calibration_data print.ratecalib_check |
| Generate example data | example_rate_data |
| Export a calibration result to an Excel workbook | export_calibration_xlsx |
| Build a pass-rate target table | make_rate_targets |
| Methods for pass_rate_calibration objects | as.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 workbook | read_calibration_data |
| Read a pass-rate target table from an Excel workbook | read_targets_xlsx |
| Replicate-weight variance of a calibrated estimate | replicate_variance |