Draws from the generative process directly: a uniform start point per
accumulator, then that accumulator's inverse-Gaussian first-passage
time, and whichever arrives first. This is the joint draw of choice
and time, which is what the model produces and what a fit needs;
simulate() on a fitted object instead redraws only the time, holding
each row's observed choice.
Arguments
- n
Number of trials.
- v
Drift rates, one per accumulator, all positive. Its length sets the number of accumulators. May be a matrix with one row per trial, for a drift that varies with a covariate.
- A
Upper end of the start-point range.
- k
Distance from the top of the start-point range to the threshold, so the threshold is
A + k.- ndt
Non-decision time.