Skip to contents

Synthesis

The two entry points. synth() handles flat, nested and longitudinal single tables; synth_linked() synthesises several linked tables jointly.

synth()
Synthesise a single (optionally nested / longitudinal) table
synth_linked()
Jointly synthesise multiple linked nested / longitudinal tables
as.data.frame(<synth_result>)
Extract the synthetic data frame from a synth_result
as.list(<synth_linked_result>)
Extract the synthetic tables from a synth_linked_result

Configuration

Tuning knobs, native temporal controls, relational schema builders, and differential privacy.

synth_control()
Tuning controls for synthesis
temporal_control()
Temporal synthesis controls
dp_control()
Differential-privacy controls (Track B)
rel_schema()
Build a multi-table relational schema for Star, Fan, Snowflake, and DAG synthesis
rel_fk()
Declare a foreign-key relationship between two tables
rule_sum()
Declare a compositional sum-conservation rule across parent and child tables
as_rel_schema()
Coerce an external schema object to a rel_schema

Methods

The synthesis-method registry and how to extend it.

register_method()
Register a synthesis method
list_methods()
List the available synthesis methods

Constraints

Row-wise and per-unit (temporal) logical constraints.

rule()
Declare a synthesis constraint

Inference

Pooled inference from synthetic data using published fully-synthetic combining rules; calibration depends on the synthesis and analysis models.

pool_synth()
Pooled inference from synthetic data
synth_glm()
Pooled generalised-linear analysis of synthetic data
compare_estimates()
Specific-utility comparison of an analysis on real vs synthetic data

Evaluation

Utility diagnostics, empirical disclosure-risk measures, and referential integrity checks for linked output.

diagnose()
Utility diagnostics comparing synthetic data to the real data
plot(<flexsynth_diagnostics>)
Plot utility diagnostics
disclosure_risk()
Empirical disclosure-risk diagnostics for synthetic data
check_linkage()
Check referential integrity of linked tables

Package

flexsynth flexsynth-package
flexsynth: flexible synthetic data for nested, longitudinal and linked data