Package: weightflow 1.3.1


Juan Pablo Ferreira
weightflow: Weighting Probability and Non-Probability Survey Samples with Recipe-Aware Replicate Variances
Builds survey analysis weights by declaring the whole weighting process as an ordered recipe of explicit adjustments, estimated in a single call: unknown eligibility, within-cluster selection, two-phase subsampling, nonresponse by weighting classes or response-propensity models, calibration and trimming. Calibration to known totals runs on linear, raking or logit distances, bounded, ridge-penalized, model-assisted or integrative with one weight per cluster; a calibrated trim bounds the weights while keeping the control totals exact. Non-probability samples are weighted against a probability reference sample by pseudo-weighting, mass imputation and doubly robust estimators that calibrate a single weight on the fitted values of several working models and on the population totals of the auxiliaries at once, so one multipurpose weight serves many variables. Variances come from a recipe-aware bootstrap and jackknife that re-apply the entire cascade on each replicate, so every adjustment is inside the variance instead of being treated as fixed; across panel waves the replicates are coordinated by carrying forward the selection multiplicities of the sampling units, so the sample overlap enters the variance of a net change as covariance. Rotating and pure panels add attrition, longitudinal weights, gross flows and composite estimation, a self-contained HTML report documents each step, and the weights bridge to the 'survey' and 'srvyr' packages, which are optional: the package itself runs on base R. The methods, and the simulation evidence behind the variance estimators, are described in Ferreira (2026) <doi:10.1177/18747655261484262>.
Authors:
weightflow_1.3.1.tar.gz
weightflow_1.3.1.zip(r-4.7-any)weightflow_1.3.1.zip(r-4.6-any)weightflow_1.3.1.zip(r-4.5-any)
weightflow_1.3.1.tgz(r-4.6-any)weightflow_1.3.1.tgz(r-4.5-any)
weightflow_1.3.1.tar.gz(r-4.7-any)weightflow_1.3.1.tar.gz(r-4.6-any)
weightflow_1.3.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
weightflow/json (API)
| # Install 'weightflow' in R: |
| install.packages('weightflow', repos = c('https://jpferreira33.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/jpferreira33/weightflow/issues
Pkgdown/docs site:https://jpferreira33.github.io
- panel_cl - Synthetic rotating- and pure-panel datasets
- panel_ine - Synthetic rotating- and pure-panel datasets
- panel_puro - Synthetic rotating- and pure-panel datasets
- panel_us - Synthetic rotating- and pure-panel datasets
- population - Synthetic target population
- sample_one - Synthetic address sample with one selected person per household
- sample_survey - Synthetic person sample with a take-all household roster
Last updated from:b895824695. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 233 | ||
| source / vignettes | OK | 236 | ||
| linux-release | OK | 176 | ||
| macos-release | OK | 239 | ||
| macos-oldrel | OK | 208 | ||
| windows-devel | OK | 210 | ||
| windows-release | OK | 195 | ||
| windows-oldrel | OK | 216 | ||
| wasm-release | OK | 106 |
Exports:as_sae_inputas_svrepdesignas_svydesignboot_flowsboot_meanboot_totalboot_transitionbootstrap_estimatebootstrap_weightschange_estimatechange_meanchange_totalcollect_estimatescollect_propensitiescollect_replicate_weightscollect_step_detailcollect_weightsdata_defectdesign_effectdisclosure_riskdomain_summaryhas_alertsjack_meanjack_totaljackknife_estimatejackknife_weightslevel_estimatelevel_meanlevel_totalnr_sensitivitypanel_designpanel_estimatepanel_meanpanel_mergepanel_prpanel_totalprepread_recipereference_samplereport_panelreport_weightingstep_assertstep_attritionstep_calibratestep_crestep_cross_sectionalstep_domainstep_drop_ineligiblestep_estimatestep_filterstep_longitudinalstep_model_calibrationstep_nonresponsestep_nr_sensitivitystep_panel_overlapstep_pseudoweightstep_rescalestep_roundstep_select_withinstep_subsamplestep_transitionstep_trimstep_trim_calibratedstep_trim_weightsstep_unknown_eligibilitytransition_matrixtwo_phase_variancewave_bootstrapwave_carrywave_contrastwave_jackknifewave_stepweight_factorsweighting_alertsweighting_specwrite_recipey_model
Dependencies:
Last update: 2026-10-14
Started: 2026-09-10
Last update: 2026-10-14
Started: 2026-07-09
Last update: 2026-10-14
Started: 2026-08-29
Last update: 2026-10-14
Started: 2026-09-10
Last update: 2026-10-14
Started: 2026-09-10
Last update: 2026-09-28
Started: 2026-09-10
Last update: 2026-09-28
Started: 2026-06-20
Last update: 2026-09-28
Started: 2026-08-29
Last update: 2026-09-10
Started: 2026-09-10
Last update: 2026-08-29
Started: 2026-08-29
Last update: 2026-08-24
Started: 2026-08-24
Last update: 2026-08-24
Started: 2026-06-26
Last update: 2026-08-24
Started: 2026-08-03
Last update: 2026-08-24
Started: 2026-08-24
Last update: 2026-08-24
Started: 2026-06-20
Last update: 2026-08-24
Started: 2026-06-20
Last update: 2026-08-24
Started: 2026-07-04
Last update: 2026-08-06
Started: 2026-08-06
Last update: 2026-08-03
Started: 2026-06-25
Last update: 2026-07-13
Started: 2026-07-05
Last update: 2026-07-13
Started: 2026-06-20
