mtcd
is a standalone C++ implementation of the statistical model proposed in "Synthesizing Truncated Count Data for Confidentiality" (Github copy).
This repository contains a R wrapper around the original source code, with minor generalizations.
In R, run the following command:
library(devtools)
install_github(“ncrncornell/Rmtcd”)
then run
library(SyntheticData)
and you can call getSyntheticData()
function .
If library(devtools)
doesn’t work, you’ll need to install the library:
install.packages(“devtools”)
On Linux, a frequent error is failure of the install_github()
function. Workaround (and more generic) is
install_git("https://github.com/ncrncornell/Rmtcd")
That always works.
In order of contribution:
- Yuxin (Charley) Chen ([email protected]),
- Hautahi Kingi ([email protected]),
- Alice Chou ([email protected]),
- Lars Vilhuber ([email protected]). Please direct queries to the Labor Dynamics Institute
The original source code in C++ is available at http://sites.duke.edu/tcrn/research-projects/downloadable-software/ and at https://github.com/labordynamicsinstitute/flow-synthesis.
This package is maintained at https://github.com/ncrncornell/Rmtcd .
Development of the original code was supported under the NSF grant SES-1131897 (NCRN Duke-NISS). Development of the R wrapper was supported under NSF Grant SES-1131848 to Cornell University (NCRN Cornell)