tidy.seqbench_comparison: Tidy the trajectory of a comparison

View source: R/broom.R

tidy.seqbench_comparisonR Documentation

Tidy the trajectory of a comparison

Description

One row per instance with the estimate, the confidence sequence at that time, its running intersection, cumulative cost and the decision the procedure would have taken there.

Usage

## S3 method for class 'seqbench_comparison'
tidy(x, ...)

Arguments

x

A seqbench_comparison.

...

Unused.

Value

A tibble with columns t, instance, n_seeds, x, estimate, lower, upper, lower_running, upper_running, cost, cost_cum, decision.

Examples

design <- comparison_design(margin = 0.05, bounds = c(0, 1), boundary = "hoeffding")
state <- update_comparison(initialize_comparison(design),
  data.frame(instance = 1:5, loss_a = c(.1, .2, .1, .3, .2), loss_b = c(.5, .6, .4, .7, .5)))
tidy(state)

seqbench documentation built on Oct. 8, 2026, 5:07 p.m.