Workflow-Oriented Survey Weight Calibration
Overview
Provides a disciplined precheck, execution, and diagnostics workflow for survey weighting and raking. Weight construction requires design-only data, a verified external target, outcome-blind planning, and human approval before weight locking, with bilingual reports for decision and statistical audiences. Converts calibrated and replicate weights into standard survey designs, provides optional broom-style result projections, and records serializable production pipeline provenance. Supports fixed, predeclared soft calibration tolerances and categorical entropy balancing from verified margins, plus panel attrition weighting, high-influence unit diagnostics, Fay's balanced repeated replication, and opt-in parallel execution for long runs. Calibration methods follow Deville and Saerndal (1992) doi:10.1080/01621459.1992.10475217, and entropy balancing follows Hainmueller (2012) doi:10.1093/pan/mpr025.
Documentation-only release prepared in response to the CRAN pre-acceptance
review of 2.0.0. No user-visible behavior changed.
wf_report()now carries a self-contained, executable example built onwf_attrition()weights, replacing the previous\dontrun{}block.- The non-installed prototype in
inst/reference/wfc_future_usability.Rrestoresgraphics::par()with the explicitoldparidiom instead ofon.exit(), matching the CRAN convention for script files.
From NEWS.md in the release
Install
Health
- OK13 OK2026-09-08
- ERROR12 OK, 1 ERROR2026-09-07
- OK7 OK2026-08-07
Documentation
- Help pages
- 72
- Examples that run
- 100%10 run in a plain check
- Exported functions with examples
- 24%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
- Attrition and influence after a verified design HTML
- Dirty data and safe infeasibility handling HTML
- Guided verified weighting in WFC 2.0 HTML
- Importing external targets with evidence HTML
- Precheck, verified execution, and diagnosis HTML
- Review tools for verified weighting HTML
- Using locked WFC weights with survey tools HTML
- Verified calibration methods in WFC 2.0 HTML
- Verified production pipelines in WFC 2.0 HTML
- Verified, outcome-blind weighting in WFC 2.0 HTML
Downloads
Repository
- PRs merged (all time)
- 92%
- Median days to close, 50 most recently updated closed issues
- 6
- Median days to close, 50 most recently updated closed PRs
- 0
14 development-tooling and community-health practices detected across 8 families in the upstream repository
Checks run against github.com/weiandata/wfc on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Show all practicesHide 4 practices
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-07-28Named in .Rbuildignore: .claudeCommits: at least 1 crediting it in the message
- Claude CodePull requests: 1 from outside contributors, first on 2026-07-28
- Claude Opus 51 commit · Jul 2026
Dependencies
Code & Tests
Datasets
People & History
- 2.0.1Latest2026-08-06 · current release
- RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-08-06
- Total releases
- 1 / 1 yrs
- License
- GPL (>= 2) OSI
- Copyright
- See file inst/COPYRIGHTS.
- Minimum R
- ≥ 3.6.0
- Bundled data
- 0.5 KB / 1 file
- Download size
- 270 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("WFC")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.