Description Usage Arguments Value Examples
View source: R/FunctionFramework.R
This function creates a storage tree of degree K using gran and range, adds independent noise to each node proportional to epsilon, and then searches the tree to create a DP-CDF. It then enforces monotonicity on the resuling dpCDF.
1 | functionHmono(eps, cdfstep, data, range, gran, K = 2, ...)
|
eps |
Epsilon value for Differential privacy control |
cdfstep |
The step sized used in outputting the approximate CDF; the values output are [min, min + cdfstep], [min, min + 2 * cdfstep], etc. |
data |
A vector of the data (single variable to compute CDFs from) |
range |
A vector length 2 containing user-specified min and max to truncate the universe to |
gran |
The smallest unit of measurement in the data (one [year] for a list of ages) |
K |
This sets the degree of the underlying tree. |
... |
Optionally add additional parameters. |
A list with 2 vectors: one is the y coordinates of the DP-CDF, the other is the abs values of the anlytically expected bounds for a similarly-constructed non-monotonized DP-CDF, at 95 percent probability.
1 | functionHmono(eps = .01, cdfstep = .1, data = rexp(10000,.4), range= c(1,10), gran = .1, K= 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.