Sim6Way: Replicate Laplace Noise for 6-way table under the exact...

View source: R/sim6way.R

Sim6WayR Documentation

Replicate Laplace Noise for 6-way table under the exact schema (hhgq, sex, Cenrace, age, hisp, geo).

Description

Replicate Laplace Noise for 6-way table under the exact schema (hhgq, sex, Cenrace, age, hisp, geo).

Usage

Sim6Way(Nrep, intab, eps, marPack, geoMod, queryMod, W = NULL)

Arguments

Nrep

Number of replication

intab

True values - array with 6 dimensions (last is geo)

eps

Laplace noise parameter. Privacy Budget

marPack

list of lists of vectors with margins to put in model. Workload of queries

geoMod

vector of weights for each geography in marPack

queryMod

vector of weights for each query in marPack

W

(optional) weight vector of same length as d + length(marPack) = total number of predictors.

Value

A list with the following:

  • param - mean parameter estimates of Nrep replications

  • rmse - Root mean square error of param estimates

  • coefEsts - each row is coefficient estimates of a replicate

  • noise - each column is the noise applied to the true table values


jlivsey/Dvar documentation built on July 13, 2024, 6:10 a.m.