tableDataAccess | R Documentation |
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 \insertCiteKifer2011DPpack
according to the theoretical values \insertCiteLiu2019bDPpack.
tableDataAccess(..., mechanism = "Laplace")
... |
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. |
List of the true contingency table and the sensitivities calculated based on bounded and unbounded differential privacy.
Liu2019bDPpack
\insertRefKifer2011DPpack
x <- MASS::Cars93$Type;
y <- MASS::Cars93$Origin;
tableDataAccess(x, y, mechanism='Laplace')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.