flexsynth: Flexible Synthetic Data for Nested, Longitudinal and Linked Multi-Table Data

Generates utility-oriented synthetic data for supported flat, nested, longitudinal and tree-linked multi-table designs, including patients, admissions, procedures and laboratory results linked by identifiers. The default engine uses sequential conditional synthesis; an opt-in differentially private engine implements person-level (epsilon, delta) mechanisms and records their budget accounting. Synthetic output is not anonymisation. Empirical utility and disclosure-risk diagnostics are descriptive and do not by themselves establish that a release is safe.

Version: 0.2.1
Depends: R (≥ 4.1)
Imports: graphics, grDevices, parallel, stats, utils
Suggests: testthat (≥ 3.0.0), rpart, ranger, partykit, data.table, knitr, litedown
Published: 2026-09-02
DOI: 10.32614/CRAN.package.flexsynth (may not be active yet)
Author: Yee How Lau [aut, cre]
Maintainer: Yee How Lau <lauyeehow1986 at gmail.com>
BugReports: https://github.com/lauyeehow1986-hub/Flexsynth/issues
License: MIT + file LICENSE
URL: https://github.com/lauyeehow1986-hub/Flexsynth
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: flexsynth results

Documentation:

Reference manual: flexsynth.html , flexsynth.pdf
Vignettes: Differentially private synthesis (Track B) (source, R code)
Getting started with flexsynth (source, R code)
Linked multi-table cardiac data (source, R code)
Nested and longitudinal data (source, R code)
Pooled inference and attribute-disclosure diagnostics (source, R code)

Downloads:

Package source: flexsynth_0.2.1.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): flexsynth_0.2.1.tgz, r-oldrel (arm64): not available, r-release (x86_64): flexsynth_0.2.1.tgz, r-oldrel (x86_64): flexsynth_0.2.1.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=flexsynth to link to this page.