Test a single CDF implementation with one set of parameters.

Description

Applies diagnostic functions to a single dpCDF, and only releases a complete set of diagnostic results (called withinCDFtest in Data Collection mode — e.g., when Visualization = FALSE)

Usage

1
2
3
CDFtestTrackx(funct, eps, data, range = range, gran, reps, samplesize,
  SmoothAll = FALSE, ExtraTests_CDF = list(), ExtraTests_PDF = list(),
  ...)

Arguments

funct

The differentially-private CDF-generating function to be tested

eps

Epsilon value for Differential privacy control

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)

reps

The number of times the combination of CDFfunction, dataset, and epsilon will be tested

samplesize

The specified sample size is randomly selected from each dataset without replacement.

SmoothAll

Applies L2 monotonicity post-processing to every DP-CDF

ExtraTests_CDF

If a user wishes to add extra diagnostics, the proper syntax would be: ExtraTests_CDF = list( functionName1 = function1, functionName2 = function2)

ExtraTests_PDF

See above

...

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

Value

A complete set of diagnostic results in the form of ...$allscores, which holds out a row of output for each of reps results.

Examples

1
2
CDFtestTrackx(badCDF, eps = .01, cdfstep = 0, data = rexp(10000,.4),
  range= c(1,10), gran = .1, reps = 20, samplesize = 10000)

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