| comparison_design | R Documentation |
Fixes, before any data is seen, everything the procedure needs: the error
level, the margin of practical equivalence, the loss bounds, the boundary and
the budget. The design is immutable; initialize_comparison() turns it into
a state that update_comparison() advances.
comparison_design(
alpha = 0.05,
margin,
bounds,
boundary = "betting",
paired = TRUE,
cost_per_round = 1,
budget = Inf,
n_max = Inf,
betting_c = 0.5,
betting_theta = 0.5,
betting_grid = 1001L,
sd_max = NULL
)
alpha |
Miscoverage level of the confidence sequence, in (0, 1). The
probability that the procedure ever issues a false declaration (of any of
the three kinds) is at most |
margin |
Margin of practical equivalence |
bounds |
Known bounds |
boundary |
One of |
paired |
Must be |
cost_per_round |
Default cost of one |
budget |
Total cost after which the procedure stops with an
inconclusive outcome. |
n_max |
Maximum number of instances. |
betting_c, betting_theta, betting_grid |
Tuning of the betting boundary:
truncation constant of the bets (default 1/2, the value recommended by
Waudby-Smith & Ramdas, who also suggest 3/4), hedging weight (default
1/2) and grid size on |
sd_max |
Required for |
An object of class seqbench_design (a list).
Waudby-Smith, I. and Ramdas, A. (2024). Estimating means of bounded random variables by betting. Journal of the Royal Statistical Society Series B, 86(1), 1-27. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1093/jrsssb/qkad009")}
initialize_comparison(), planning_horizon()
design <- comparison_design(alpha = 0.05, margin = 0.02, bounds = c(0, 1))
design
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.