run_experiment: Function to run Monte Carlo experiments

View source: R/run_experiment.R

run_experimentR Documentation

Function to run Monte Carlo experiments

Description

Function to run Monte Carlo experiments

Usage

run_experiment(
  run_id = "testrun",
  results_directory = NULL,
  population,
  n,
  mechanism,
  ...,
  get_synthetic_data,
  statistics_of_interest,
  B = 1000,
  store_P_tilde = FALSE,
  store_P_tilde_tilde = FALSE
)

Arguments

population

a dataset with a fixed population or a function to draw n values from a population

n

The sample size

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 sstore 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.