new_privacy {dapper}R Documentation

privacy Object Constructor.

Description

Creates a privacy object to be used as input into dapper_sample().

Usage

new_privacy(
  post_f = NULL,
  latent_f = NULL,
  priv_f = NULL,
  st_f = NULL,
  npar = NULL,
  varnames = NULL
)

Arguments

post_f

a function that draws posterior samples given the confidential data.

latent_f

a function that represents the latent data sampling model.

priv_f

a function that represents the log likelihood of the privacy mechanism.

st_f

a function that calculates the statistic to be released.

npar

dimension of the parameter being estimated.

varnames

an optional character vector of parameter names. Used to label summary outputs.

Details

Value

A S3 object of class privacy.


[Package dapper version 1.0.0 Index]