Skip to content

wdsmatch

0.1.1

Weighted Double Score Matching for Survey-Weighted Causal Inference

0packages depend
1.1Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Yukang ZengFirst published 2026-04-221 releasesCRAN page ↗GitHub ↗

Implements weighted double score matching (WDSM) for estimating population-level causal effects from complex survey data. Combines propensity scores and prognostic scores with survey design weights for matching, survey-weighted imputation within match sets, and Hajek normalization to target the population average treatment effect (PATE) and the population average treatment effect on the treated (PATT). Supports both retrospective (treatment-dependent) and prospective (treatment-independent) sampling designs. Achieves double robustness: consistent estimation when either the propensity score or prognostic score model is correctly specified. Provides polynomial sieve bias correction and linearization-based multinomial bootstrap variance estimation that preserves the survey-weighted matching structure without re-matching. Methods are described in Zeng, Tong, Tong, Lu, Mukherjee, and Li (2026, under review) "Where to weight? Estimating population causal effects with weighted double score matching in complex surveys".

Install

Health

CRAN checks
13OK
Slowest check: 1.1 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.55
not tracked
Coverage
100%
Documentation · exports
None
Vignettes
No
README
1
Dependencies · direct
Check history
  • OK2026-04-22
    8 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Downloads

1.1K
CRAN downloads in the past year
Rank #10,332 · ~3/day · ~88/mo
Daily download trend is not available in this view yet.
35930 days
1.1K90 days
1.1K1 year
Compare downloads with other packages →
Also on21 r2u3 autocran

Repository

Dependencies

Declared dependencies
3 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5.0
Imports (1)
stats
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
R 1,113 (78%)Rd 320 (22%)
Code characteristics
Object systems
S32
Cyclomatic complexity
3.0 median / 12 max
Test cases
30 / 0.55 per code line
Documented parameters
100%

Test coverage

Line coverage

Expression

Tests / Examples

Functions

15 2 exported

Complexity

4.8 avg / 12 max

Call network

15 nodes / 22 edges

Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

People & History

People (6)
Maintainer (1)
Author, Maintainer
Authors (6)
Author, Maintainer
Author
Release timeline

1 release. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.1Latest
    2026-04-22 · current release
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2026-04-22
Total releases
1 / 1 yrs
License
GPL-3 OSI
Minimum R
≥ 3.5.0
Bundled data
8.1 KB / 1 file
Download size
not tracked yet
Installed size
not tracked yet
With dependencies
not tracked yet