Skip to contents

Adaptive results history ready for BT fitting

Usage

adaptive_results_history(state, committed_only = TRUE)

Arguments

state

Adaptive state.

committed_only

Use only committed comparisons.

Value

A tibble with columns:

object1

Character item id shown in position A.

object2

Character item id shown in position B.

result

Numeric outcome in {0, 1} where 1 means object1 wins.

Details

Converts adaptive step outcomes into the three-column format accepted by fit_bt_model() (object1, object2, result). Pass the result directly to fit_bt_model(); it is already in the output format of build_bt_data() and needs no further conversion. With committed_only = TRUE, only committed steps (pair_id not missing) are retained. This preserves the transactional invariant that invalid steps do not contribute to inferred comparisons.

Examples

state <- adaptive_rank_start(c("a", "b", "c"), seed = 1)
adaptive_results_history(state)
#> # A tibble: 0 × 3
#> # ℹ 3 variables: object1 <chr>, object2 <chr>, result <dbl>