Skip to content

eVCGsampler

1.2.0Package record

VCG Sampling using Energy-Based Covariate Balancing

0packages depend
3.6Kdownloads / year
82.0%test coverage
13/13flavors OK

Overview

About
Maintained by Andreas SchulzCRAN page ↗GitHub ↗Declared funder: Sanofi

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.

Changes in 1.2.0
  • 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 to shiny::runApp().
  • VCG_sampler(): the size sanity warnings now count the POOL as the first level of the group variable, so they are also correct for combine_data() output ("POOL"/"TG") instead of reporting a POOL size of 0.
  • VCG_sampler() now stops with a clear message when n is 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 (with VCG = 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 single NA), only scans sizes up to the POOL size with complete data, and no longer repeats the VCG_sampler() size warnings for every tried size.
  • robust_scale() ignores NA when detecting binary/categorical variables and no longer returns Inf/NaN when 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

CRAN checks
13OK
Slowest check: 6.4 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-18
  • WARNING6 OK, 8 WARNING2026-03-10
Advisories

none known

Documentation

In release 1.2.0
READMEYes · 163 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 1.2.0Citation fileNoWebsitenot declared in DESCRIPTION
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%
Vignettes (1)

Downloads

3.6K
CRAN downloads in the past year
Rank #13,743 · ~10/day · ~304/mo
Daily download trend is not available in this view yet.
30730 days
84390 days
3.6K1 year
Compare downloads with other packages →
Also on95 r2u4 autocran

Repository

0Stars
0Forks
0Open issues
0Open PRs
0Releases
Last activity 2026-10-15
Responsiveness
How these are sampled
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

2026-07-07 · 12026-07-30 · 0
PracticesBeta

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.

Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
16 external dependencies (excludes base and recommended)

Installing eVCGsampler adds 48 packages (29 with compiled code, 43 MB of source tarballs). Heaviest: ggplot2 6.0 MB, bslib 5.6 MB, patchwork 3.2 MB.

Depends (1)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (2)
Author, Maintainer since 0.9.2 (2025)
Created in 2025
Copyright holder, Funder
Releases (6)

Pick two releases to compare their code metrics.

  • 1.2.0Latest
    record
    2026-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.2
    record
    2026-07-22 · diff ↗
  • 1.1.0
    record
    2026-07-06 · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 1.0.0
    record
    2026-03-10 · diff ↗ ·
    added 1 export
    launchApp
  • 0.9.5
    record
    2026-02-13 · diff ↗ ·
    added 2 exports
    combine_variables, find_outliers
  • 0.9.2
    record
    2025-12-19
  • R
    R 4.5.0 released · 2025-04-11
Across CRAN, the median accepted release of the past year spent 23 hours in the queue, 90% under 11 days.How queue time is measured

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")
Schulz, A., & Sanofi. (2026). eVCGsampler: VCG Sampling using Energy-Based Covariate Balancing (Version 1.2.0) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

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

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.

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