pooledVarDataAccess | R Documentation |
This function performs the data access step in the computation of a
differentially private pooled variance. The true values are computed using
the theoretical formula and var
, while the sensitivities
are calculated based on bounded and unbounded differential privacy
\insertCiteKifer2011DPpack according to the theoretical values
\insertCiteLiu2019bDPpack.
pooledVarDataAccess(samples, lower.bound, upper.bound, approx.n.max)
samples |
List of vectors from which to compute the pooled variance. |
lower.bound |
Real number giving the lower bound of the input data. |
upper.bound |
Real number giving the upper bound of the input data. |
approx.n.max |
Logical indicating whether to approximate n.max, which is defined to be the length of the largest input vector. Approximation is best if n.max is very large. |
List of the true pooled variance and the sensitivities calculated based on bounded and unbounded differential privacy.
Liu2019bDPpack
\insertRefKifer2011DPpack
pooledVarDataAccess(list(c(1,4,-2,8,-6),c(1,2),c(-5,-7)),-10,10,FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.