Learn R Programming

CDF.PSIdekick (version 1.2)

horzdiffatQuantile: Determine the distance between the quantile values returned by two CDFs.

Description

Find the distance between the quantile value and that returned by the dpCDF at a given quantile.

Usage

horzdiffatQuantile(Y, est, range, gran, quantile, ...)

Arguments

Y
The vector output of a non-differentially private CDF computation (cumulative count bins)
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)
quantile
A quantile value between 0 and 1, defaults to 0.5 for the median
...
Optionally add additional parameters. This is primarily used to allow automated execution of varied diagnostic functions.

Value

The horizontal error at the quantile specified by quantile

Examples

Run this code
diffatQuantile(c(.1,.2,.3,.4,.5,.6,.7,.8,.9,1), 
   c(.1,.2,.3,.3,.3,.3,.3,.3,.4,1),c(1,10), 1, .05)

Run the code above in your browser using DataLab