Synthetic Clinical Data Generation and Privacy-Preserving Validation
Overview
Generates synthetic clinical datasets that preserve statistical properties while reducing re-identification risk. Implements Gaussian copula simulation, bootstrap with noise injection, and Laplace noise perturbation, with built-in utility and privacy validation metrics. Useful for privacy-aware data sharing in multi-site clinical research. Validates synthetic data quality via distributional similarity (Kolmogorov-Smirnov), discriminative accuracy (real-vs-synthetic classifier), and nearest-neighbor privacy ratio. Methods described in Jordon et al. (2022) doi:10.48550/arXiv.2205.03257 and Snoke et al. (2018) doi:10.1111/rssa.12358.
- Initial release.
synthesize(): Parametric (Gaussian copula), bootstrap with noise injection, and Laplace noise perturbation methods.validate_synthetic(): Distributional similarity (KS), correlation preservation, discriminative accuracy (AUC), and nearest-neighbor privacy ratio.compare_methods(): Benchmark all three synthesis methods on the same dataset.privacy_risk(): Re-identification risk assessment via nearest-neighbor distance ratio, membership inference, and attribute disclosure.model_fidelity(): Train-on-synthetic, test-on-real predictive performance comparison.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- NOTE12 OK, 1 NOTE2026-06-08
- OK3 OK2026-04-03
Documentation
- Help pages
- 6 (1 internal)includes a package overview page
- Examples that run
- 100%5 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 83%
Downloads
Repository
Stars over time
11 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/cuiweig/syntheticdata on 2026-10-25.
The R CMD check workflow runs on Linux, macOS and Windows
GitHub Pages site last deployed 2026-10-24 · The repository has a site deploy workflow
Show all practicesHide 2 practices
Dependencies
Code & Tests
People & History
- RR 4.6.0 released · 2026-04-24
- 0.1.0Latest2026-04-02 · current release
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2026-04-02
- Total releases
- 1 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 148 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("syntheticdata")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.