View source: R/run_experiment.R
run_experiment | R Documentation |
Function to run Monte Carlo experiments
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 )
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 |
A list with the calculated statistics of interest and their bootstrap distribution
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.