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 (yc769@cornell.edu),
- Hautahi Kingi (hrk55@cornell.edu),
- Alice Chou (aec247@cornell.edu),
- Lars Vilhuber (lars.vilhuber@cornell.edu). 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)