Skip to contents

An accumulator has a random finishing time drawn from dist, shifted by its onset and nondecision time t0. Use add_outcome() to connect its completion to an observed response.

Usage

add_accumulator(spec, id, dist, onset = 0)

Arguments

spec

A race_spec object.

id

Label for the accumulator.

dist

Distribution family: "lognormal", "gamma", "exgauss", "LBA", or "RDM". Names are case-insensitive.

onset

Start time for the accumulator. This can be a fixed numeric onset or a chained onset created with after().

Value

The updated race_spec.

Examples

spec <- race_spec()
spec <- add_accumulator(spec, "A", "lognormal")