Skip to content

get_parameters(... keep_par_name=F) gives wrong results if one of the players has a name of a variable #5

Description

@davidissamattos

If a player is called lambda, B, U1, U2, U3 or S the name is skipped in the end result.
If keep_par_name=T the result is correct.

The solution would need to change how the renaming of the parameters works in the function replace_parameter_index_with_names in bpc_helpers_index.R

Reproducible example:

test_bt <- load_testdata('test_bt')

  m1 <- bpc(
    data = test_bt,
    player0 = 'player0',
    player1 = 'player1',
    result_column = 'y',
    model_type = 'bt',
    solve_ties = 'random',
    win_score = 'higher',
    iter = 1000,
    warmup = 300,
    show_chain_messages = F,
    seed = 8484
  )

get_parameters(m1,keep_par_name = F)

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions