VCG Sampling using Energy-Based Covariate Balancing
Overview
Provides a principled framework for sampling Virtual Control Group (VCG) using energy distance-based covariate balancing. The package offers visualization tools to assess covariate balance and includes a permutation test to evaluate the statistical significance of observed deviations.
launchApp()now starts a new, modernised Shiny app with a guided five-step workflow (Data, Setup, Pre-tests, Sampling, Report), example data, an HTML report and Excel/CSV exports. The app's extra packages are listed under Suggests;launchApp()reports any missing ones, and passes...on toshiny::runApp().VCG_sampler(): the size sanity warnings now count the POOL as the first level of the group variable, so they are also correct forcombine_data()output ("POOL"/"TG") instead of reporting a POOL size of 0.VCG_sampler()now stops with a clear message whennis larger than the POOL with complete data, or when one of the groups is empty, instead of silently selecting the whole POOL.VCG_sampler()with stratum now returns the rows in the input order and keeps rows with a missing stratum value (withVCG = NA), as is already done for rows with missing covariates.BestVCGsize()no longer fails for small POOLs or when no plateau is found (it returns a singleNA), only scans sizes up to the POOL size with complete data, and no longer repeats theVCG_sampler()size warnings for every tried size.robust_scale()ignoresNAwhen detecting binary/categorical variables and no longer returnsInf/NaNwhen the reference group is constant.plot_var()now works with a single stratum level and with character stratum variables.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-18
- WARNING6 OK, 8 WARNING2026-03-10
Documentation
- Help pages
- 11
- Examples that run
- 91%10 run in a plain check · 1 never run
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 91%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- not measured
Issues over time
1 development-tooling and community-health practice detected across 1 family in the upstream repository
Checks run against github.com/sanofi-public/evcgsampler on 2026-10-18.
Dependencies
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 1.2.0Latest2026-10-15 · current release · diff ↗ ·
listed once in CRAN's queue
Seen in one reading of CRAN's incoming queue, at 2026-10-15 12:21 UTC, so it stayed less than the time between readings. - 1.1.22026-07-22 · diff ↗
- 1.1.02026-07-06 · diff ↗
- RR 4.6.0 released · 2026-04-24
- 1.0.0
- 0.9.5
- 0.9.22025-12-19
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-12-19
- Total releases
- 6 / 1 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 2.9 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("eVCGsampler")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-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.