rlba {glba} | R Documentation |
Generate data from an LBA model.
Description
Generate data from an LBA model.
Usage
rlba(n, b, A, vs, s, t0, st0 = 0, truncdrifts = TRUE)
Arguments
n |
The number of random variates required. |
b |
The boundary parameter. |
A |
The start point parameter. |
vs |
The drift rates for each of the accumulators. |
s |
The standard deviation of the drift rates. |
t0 |
The non-decision time. |
st0 |
Variability of the non-decision time, uniformly distributed as t0+U(0,st0). |
truncdrifts |
Logical; whether drifts that are generated should be truncated at zero. Negative RTs may result when set to FALSE. |
Details
No more details.
Value
A data.frame with two variables, 'rt' and 'resp', for the response time and the response, respectively.
Author(s)
Ingmar Visser, function adapted from Brown and Heathcote.
http://www.newcl.org/publications/2008/lbasoftware.htm
References
Function adapted from Brown and Heathcote.
http://www.newcl.org/publications/2008/lbasoftware.htm
Examples
# to be added later