Package: masque
Title: Synthetic Copies of Confidential Data Tables
Version: 0.18.0
Authors@R: c(
    person("Max", "Moldovan",
           email = "max.moldovan@gmail.com",
           role  = c("aut", "cre"),
           comment = c(ORCID = "0000-0001-9680-8474",
                       affiliation = "Adelaide University")),
    person("Grains Research and Development Corporation", role = c("fnd", "cph"),
           comment = c("GRDC Project UOA2301-005OPX (AAGI-AU)", ROR = "02xwr1996"))
    )
Description: 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.
License: MIT + file LICENSE
Encoding: UTF-8
Language: en-AU
Depends: R (>= 4.2.0)
Imports: cli, data.table (>= 1.15.0), digest (>= 0.6.21), Matrix, S7
        (>= 1.0.0), stats, utils, withr
Suggests: agridat, callr, fst, ggplot2, knitr, maps, openssl, readxl,
        rmarkdown, spelling, testthat (>= 3.0.0), writexl, yaml
VignetteBuilder: knitr
Config/testthat/edition: 3
URL: https://max578.github.io/masque/, https://github.com/max578/masque
BugReports: https://github.com/max578/masque/issues
Config/roxygen2/version: 8.1.0
NeedsCompilation: no
Packaged: 2026-11-23 11:54:44 UTC
Author: Max Moldovan [aut, cre] (ORCID:
    <https://orcid.org/0000-0001-9680-8474>, affiliation: Adelaide
    University),
  Grains Research and Development Corporation [fnd, cph] (GRDC Project
    UOA2301-005OPX (AAGI-AU), ROR: <https://ror.org/02xwr1996>)
Maintainer: Max Moldovan <max.moldovan@gmail.com>
Repository: CRAN
Date/Publication: 2026-12-01 08:20:02 UTC
