Skip to content

svycdiff

0.2.0Package record

Controlled Difference Estimation for Complex Surveys

0packages depend
2.2Kdownloads / year
0.0%test coverage
13/13flavors OK

Overview

About

Estimates the population average controlled difference for a given outcome between levels of a binary treatment, exposure, or other group membership variable of interest for clustered, stratified survey samples where sample selection depends on the comparison group. Provides three methods for estimation, namely outcome modeling and two factorizations of inverse probability weighting. Under stronger assumptions, these methods estimate the causal population average treatment effect. Salerno et al., (2024) doi:10.48550/arXiv.2406.19597.

Changes in 0.2.0
  • **Added**: support for binary and count outcomes via generalized estimating equations
  • **Added**: Augmented inverse probability weighted (AIPW) estimator to main function via id_form = "DR"
  • **Improved**: Expanded simulation function to allow for binary and count outcomes, stratified clustered sampling, and increased parameters to specify the true propensity, selection, and outcome models.
  • **Updated**: Main function to be faster for larger sample sizes. Separated pieces of estimation workflow into helper functions (helpers.R) for better compartmentalization.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.3 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.2.0
READMEYes · 295 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.2.0Citation fileNoWebsiteYes · pkgdown
Help pages
3
Examples that run
100%3 run in a plain check
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
33%

Downloads

2.2K
CRAN downloads in the past year
Rank #20,711 · ~6/day · ~182/mo
Daily download trend is not available in this view yet.
22930 days
64690 days
2.2K1 year
Compare downloads with other packages →
Also on101 r2u2 autocran

Repository

3Stars
1Forks
0Open issues
0Open PRs
0Releases
79Commits
1Commit identities
License file reads as GPL-3.0 · 79 commits · Last activity 2025-07-22
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
0
Median days to close, 50 most recently updated closed PRs
0
PracticesBeta

8 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/salernos/svycdiff on 2026-10-22.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2025-07-22 · The repository has a site deploy workflow

CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
7 external dependencies (excludes base and recommended)

Installing svycdiff adds 14 packages (7 with compiled code, 11 MB of source tarballs). Heaviest: survey 2.3 MB, Rcpp 1.8 MB, betareg 1.4 MB.

Depends (1)
R >= 4.1.0
Imports (5)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (6)
Author, Maintainer since 0.1.1 (2024), Copyright holder
Author · added in 0.2.0
Author
Releases (2)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.2.0Latest
    record
    2025-07-22 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.1.1
    record
    2024-08-20
  • R
    R 4.4.0 released · 2024-04-24

Package metadata

First published
2024-08-20
Total releases
2 / 2 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 4.1.0
Bundled data
237 KB / 1 file
Download size
4.1 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("svycdiff")
Salerno, S., Li, F., McCormick, T. H., Mukherjee, B., Roberts, E. K., & Shi, X. (2025). svycdiff: Controlled Difference Estimation for Complex Surveys (Version 0.2.0) [Computer software]. https://doi.org/10.32614/CRAN.package.svycdiff

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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for svycdiff version 0.2.0 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy