Learn R Programming

synthpop (version 1.9-3)

Generating Synthetic Versions of Sensitive Microdata for Statistical Disclosure Control

Description

A tool for producing synthetic versions of microdata containing confidential information so that they are safe to be released to users for exploratory analysis. The key objective of generating synthetic data is to replace sensitive original values with synthetic ones causing minimal distortion of the statistical information contained in the data set. Most synthesising methods available in the package synthesise from conditional distributions where variables, which can be categorical or continuous, are synthesised one-by-one using sequential modelling. Replacements are generated by drawing from conditional distributions fitted to the original data using parametric or classification and regression trees models. Methods that are not sequential, but synthesise all variables at once, are 'sample', 'ipf', and 'catall'. Data are synthesised via the function syn() which can be largely automated, if default settings are used, or with methods defined by the user. Optional parameters can be used to influence the disclosure risk and the analytical quality of the synthesised data. The package also includes functions to assess the utility and disclosure risk of the synthetic data compared to the original. These are described in vignettes (Utility - Assessing, Visualizing and Improving the Utility of Synthetic Data) and (Disclosure - Practical Privacy Metrics for Synthetic Data).

Copy Link

Version

Install

install.packages('synthpop')

Monthly Downloads

2,933

Version

1.9-3

License

GPL-2 | GPL-3

Maintainer

Beata Nowok

Last Published

September 10th, 2026

Functions in synthpop (1.9-3)

numtocat.syn

Group numeric variables before synthesis
polr.synds

Fitting ordered logistic models to synthetic data
replicated.uniques

Replications in synthetic data
read.obs

Importing original data sets form external files
multinom.synds

Fitting multinomial models to synthetic data
syn.bag

Synthesis with bagging
syn

Generating synthetic data sets
summary.synds

Synthetic data object summaries
summary.fit.synds

Inference from synthetic data
sdc

Tools for statistical disclosure control (sdc)
syn.ipf

Synthesis of a group of categorical variables by iterative proportional fitting
syn.ctree, syn.cart

Synthesis with classification and regression trees (CART)
syn.polr

Synthesis by ordered polytomous regression
syn.norm

Synthesis by linear regression
syn.passive

Passive synthesis
syn.normrank

Synthesis by normal linear regression preserving the marginal distribution
syn.lognorm, syn.sqrtnorm, syn.cubertnorm

Synthesis by linear regression after transformation of a dependent variable
syn.nested

Synthesis for a variable nested within another variable.
syn.catall

Synthesis of a group of categorical variables from a saturated model
syn.logreg

Synthesis by logistic regression
syn.satcat

Synthesis from a saturated model based on all combinations of the predictor variables.
synorig.compare

check synthetic and original if not produced by synthpop.
utility.gen

Distributional comparison of synthesised and observed data
syn.polyreg

Synthesis by unordered polytomous regression
syn.smooth

syn.smooth
syn.survctree

Synthesis of survival time by classification and regression trees (CART)
syn.ranger

Synthesis with a fast implementation of random forests
syn.rf

Synthesis with random forest
syn.sample

Synthesis by simple random sampling
synthpop-package

Generating synthetic versions of sensitive microdata for statistical disclosure control
write.syn

Exporting synthetic data sets to external files
utility.tables

Tables and plots of utility measures
utility.tab

Tabular utility
glm.synds, lm.synds

Fitting (generalized) linear models to synthetic data
compare.synds

Compare univariate distributions of synthesised and observed data
compare.fit.synds

Compare model estimates based on synthesised and observed data
multi.compare

Multivariate comparison of synthesised and observed data
codebook.syn

Makes a codebook from a data frame
mergelevels.syn

Merge levels of factors in a data frame
compare

Comparison of synthesised and observed data
multi.disclosure

Disclosure measures for multiple of target variables.
disclosure

Disclosure measures
SD2011

Social Diagnosis 2011 - Objective and Subjective Quality of Life in Poland