get_avg_width | R Documentation |
Get the empirical width of a confidence sequence
get_avg_width(data_generator_fn, conf_set_fn, times, num_repeats, n_cores = 1)
data_generator_fn |
A function which generates a vector of data (() -> real) |
conf_set_fn |
A function which takes a vector of data and produces a sequence of confidence intervals or a confidence sequence (real -> (real, real)) |
times |
The times for which the miscoverage should be considered. For example, we might want to start the experiment late since early start times can lead to poor asymptotic approximations (a vector of positive integers) |
num_repeats |
How many repeats to perform. Higher values lead to better estimates of the miscoverage rate (positive int). |
n_cores |
How many cores to parallel process on (positive int). |
A vector of (increasing) miscoverage rates at each time (a (0, 1)-valued vector).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.