Learn R Programming

DPpack (version 0.2.0)

tableDataAccess: Differentially Private Contingency Table Data Access Function

Description

This function performs the data access step in the computation of a differentially private contingency table. The true values are computed using table,while the sensitivities are calculated based on bounded and unbounded differential privacy Kifer2011DPpack according to the theoretical values Liu2019bDPpack.

Usage

tableDataAccess(..., mechanism = "Laplace")

Value

List of the true contingency table and the sensitivities calculated based on bounded and unbounded differential privacy.

Arguments

...

Vectors of data from which to create the contingency table.

mechanism

String indicating which mechanism to use for differential privacy. If the 'Laplace' mechanism is chosen, l1 sensitivities are returned. If the 'Gaussian' or 'analytic' mechanisms are chosen, l2 sensitivities are returned.

References

Liu2019bDPpack

Kifer2011DPpack

Examples

Run this code
x <- MASS::Cars93$Type;
y <- MASS::Cars93$Origin;
tableDataAccess(x, y, mechanism='Laplace')

Run the code above in your browser using DataLab