`set_parameters()` lets you rename parameters and share them across accumulators using one simple mapping. Each list name is the external parameter name users will supply; each value is one or more internal model parameter names such as `go.m` or `stop.t0`.
Examples
spec <- race_spec() |>
add_accumulator("go", "lognormal") |>
add_accumulator("stop", "lognormal") |>
add_outcome("go", "go") |>
add_outcome("stop", "stop") |>
set_parameters(list(
drift = c("go.m", "stop.m"),
spread = c("go.s", "stop.s"),
onset = "go.t0"
))
sampled_pars(spec)
#> [1] "drift" "spread" "go.q" "onset" "stop.q" "stop.t0"
