Package: masque 0.18.0

masque: Synthetic Copies of Confidential Data Tables
Creates a synthetic copy of a confidential data table, so that analysis code can be written and tested without the real values. By default, every outcome and covariate is simulated independently, with no link to other columns or to the real rows. Each numeric column keeps only an eleven-point summary: its 1st percentile, deciles and 99th percentile. The experimental design and the pattern of missing values are kept exactly, and category labels, including those of the design and the treatments, are replaced by codes. Columns that look like identifiers or free text are left out. More of the real structure can be kept on request, at the cost of disclosing more about the real data. With mode = "local" (for the data owner's own use) or mode = "collaborate" (for sharing), numeric columns are simulated from a Gaussian copula, which approximately preserves each column's distribution and the correlations between them. In those modes, treatment effects can also be mimicked by setting conditional = TRUE in mask(). A folder of files or a multi-sheet workbook can be masked together. Keys shared by the tables get the same codes in every table, so the synthetic tables still join. Each run also returns a recipe, which maps the codes back to the real labels. The recipe is as confidential as the data and should stay with the data owner. apply_recipe() converts the real data into the names and codes of the copy, so code written on the copy runs on it unchanged, and unmask() converts results back to the real labels. The package gives no formal privacy guarantee.
Authors:
masque_0.18.0.tar.gz
masque_0.18.0.zip(r-4.7-any)masque_0.18.0.zip(r-4.6-any)masque_0.18.0.zip(r-4.5-any)
masque_0.18.0.tgz(r-4.6-any)masque_0.18.0.tgz(r-4.5-any)
masque_0.18.0.tar.gz(r-4.7-any)masque_0.18.0.tar.gz(r-4.6-any)
masque_0.18.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
masque/json (API)
| # Install 'masque' in R: |
| install.packages('masque', repos = c('https://max578.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/max578/masque/issues
Pkgdown/docs site:https://max578.github.io
Last updated from:cf4a31f2ca (on main). Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 235 | ||
| source / vignettes | OK | 266 | ||
| linux-release | OK | 186 | ||
| macos-release | OK | 223 | ||
| macos-oldrel | OK | 201 | ||
| windows-devel | OK | 225 | ||
| windows-release | OK | 226 | ||
| windows-oldrel | OK | 213 | ||
| wasm-release | OK | 103 |
Exports:apply_recipeaudit_maskclean_tableclone_planconform_tablecontrol_speccontrol_tablecontrolsdata_carddetect_designhandoverjitter_coordinatesmaskmask_setmasquemasque_planplot_design_summarypropose_rolesread_planread_reciperead_setrecipereveal_mapsrole_optionsrolesroles_validatesave_plansave_recipeset_rolesynthesise_geospatialsyntheticunmaskwrite_set
Last update: 2026-11-25
Started: 2026-05-16
Last update: 2026-11-25
Started: 2026-05-16
Last update: 2026-11-25
Started: 2026-11-25
Last update: 2026-11-25
Started: 2026-05-16
Last update: 2026-11-25
Started: 2026-09-25
