| boundary_kernels | R Documentation |
Low-level state machines behind the confidence sequences used by
update_comparison(). Observations must already be rescaled to [0, 1].
These functions are exported for reuse by sister packages; ordinary users
should call comparison_design() and update_comparison() instead.
boundary_init(
name = seqbench_boundaries(),
alpha = 0.05,
c = 0.5,
theta = 0.5,
grid = 1001L,
refine = TRUE,
sd_max01 = NULL
)
boundary_update(state, x)
boundary_interval(state, thresholds = NULL)
name |
One of |
alpha |
Miscoverage level in (0, 1). |
c |
Truncation constant for the empirical-Bernstein and betting bets, in (0, 1). Waudby-Smith & Ramdas recommend 1/2 or 3/4. |
theta |
Hedging weight on the "long" capital in the betting boundary, in (0, 1). Default 1/2. |
grid |
Number of grid points on |
refine |
Logical; refine the betting interval endpoints by bisection on
the exact capital (default |
sd_max01 |
For |
state |
A boundary state returned by |
x |
A single number in |
thresholds |
Optional numeric vector of decision thresholds on the
|
boundary_init() and boundary_update() return a state object of
class seqbench_boundary. boundary_interval() returns a named numeric
vector c(estimate, lower, upper) on the [0, 1] scale. For the betting
boundary, NA endpoints mean that the exact confidence set is empty (a
possible event, of probability at most alpha under the assumptions); a
nonempty set narrower than one grid cell is located by searching the exact
capital, never reported as empty.
st <- boundary_init("hoeffding", alpha = 0.05)
for (x in c(0.2, 0.3, 0.25)) st <- boundary_update(st, x)
boundary_interval(st)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.