Retrieve a median estimate from the dpCDF

Share:

Description

Determines a median value from a CDF vector.

Usage

1
Medians(est, range, gran, ...)

Arguments

est

The vector output of a differentially private CDF computation (cumulative count bins)

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), the Domain (ie gran and range) should be identical to those used to create the CDF!

...

Optionally add additional parameters. This is primarily used to allow automated execution of varied diagnostic functions.

Value

A vector of medians obtained from a (differentially private) CDF vector, not using any extra privacy budget, there may be more than one due to random noise causing the DPCDF doubling back over the .5 probablity latitude

Examples

1
Medians(c(.1,.2,.3,.3,.3,.3,.3,.3,.4,1),c(1,10), 1)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.