synthpop: Generating Synthetic Versions of Sensitive Microdata for Statistical Disclosure Control

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. 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. 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. For a description of the implemented method see Nowok, Raab and Dibben (2016) <doi:10.18637/jss.v074.i11>. Functions to assess identity and attribute disclosure for the original and for the synthetic data are included in the package, and their use is illustrated in a vignette on disclosure (Practical Privacy Metrics for Synthetic Data).

Version: 1.9-0
Imports: lattice, MASS, methods, nnet, ggplot2, graphics, stats, utils, rpart, party, foreign, plyr, proto, polspline, randomForest, ranger, classInt, mipfp, survival, stringr, rmutil, broman, forcats
Published: 2024-12-20
DOI: 10.32614/CRAN.package.synthpop
Author: Beata Nowok [aut, cre], Gillian M Raab [aut], Chris Dibben [ctb], Joshua Snoke [ctb], Caspar van Lissa [ctb], Lotte Pater [ctb]
Maintainer: Beata Nowok <beata.nowok at gmail.com>
License: GPL-2 | GPL-3
URL: <https://www.synthpop.org.uk/>
NeedsCompilation: no
Citation: synthpop citation info
Materials: NEWS
In views: OfficialStatistics
CRAN checks: synthpop results

Documentation:

Reference manual: synthpop.pdf
Vignettes: Disclosure (source, R code)
Inference in synthpop (source, R code)
Using synthpop (source, R code)
Utility (source, R code)

Downloads:

Package source: synthpop_1.9-0.tar.gz
Windows binaries: r-devel: synthpop_1.9-0.zip, r-release: synthpop_1.9-0.zip, r-oldrel: synthpop_1.9-0.zip
macOS binaries: r-release (arm64): synthpop_1.9-0.tgz, r-oldrel (arm64): synthpop_1.9-0.tgz, r-release (x86_64): synthpop_1.9-0.tgz, r-oldrel (x86_64): synthpop_1.9-0.tgz
Old sources: synthpop archive

Reverse dependencies:

Reverse suggests: miceadds, NHSRdatasets, SynthTools

Linking:

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