dp_bootstrap: Generic pipeline for dp bootstrap

View source: R/dp_bootstrap.R

dp_bootstrapR Documentation

Generic pipeline for dp bootstrap

Description

Generic pipeline for dp bootstrap

Usage

dp_bootstrap(
  data,
  mechanism,
  get_synthetic_data,
  statistics_of_interest,
  B = 1000,
  store_P_tilde = FALSE,
  store_P_tilde_tilde = FALSE
)

Arguments

data

input dataset

mechanism

dp mechanism. A function that takes a data set x as input and produces a generative model.

statistics_of_interest

Functions to calculate the statistics of interest on the output of the mechanism, collected in a list

B

number of bootstrap repetitions

store_P_tilde

Do you want to store the initial generative model? Default: FALSE

store_P_tilde_tilde

Do you want to store all bootstrapped generative models? Default: FALSE

Value

A list with the calculated statistics of interest and their bootstrap distribution


mneunhoe/dpBootstrap documentation built on Feb. 10, 2023, 6:31 a.m.