powered by
Generate data from an LBA model.
rlba(n, b, A, vs, s, t0, st0 = 0, truncdrifts = TRUE)
The number of random variates required.
The boundary parameter.
The start point parameter.
The drift rates for each of the accumulators.
The standard deviation of the drift rates.
The non-decision time.
Variability of the non-decision time, uniformly distributed as t0+U(0,st0).
Logical; whether drifts that are generated should be truncated at zero. Negative RTs may result when set to FALSE.
A data.frame with two variables, 'rt' and 'resp', for the response time and the response, respectively.
No more details.
Function adapted from Brown and Heathcote.
http://www.newcl.org/publications/2008/lbasoftware.htm
# NOT RUN { # to be added later # }
Run the code above in your browser using DataLab