Learn R Programming

glba (version 0.2.1)

rlba: 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.

Value

A data.frame with two variables, 'rt' and 'resp', for the response time and the response, respectively.

Details

No more details.

References

Function adapted from Brown and Heathcote.

http://www.newcl.org/publications/2008/lbasoftware.htm

Examples

Run this code
# NOT RUN {
# to be added later
# }

Run the code above in your browser using DataLab