CDFtestTrackx: Test a single CDF implementation with one set of parameters.

Description Usage Arguments Value Examples

View source: R/CDFtestingSuite.R

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)


CDF.PSIdekick documentation built on May 20, 2017, 2:49 a.m.
Search within the CDF.PSIdekick package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.