rlba: Generate data from an LBA model.

Description Usage Arguments Details Value Author(s) References Examples

View source: R/rlba.R

Description

Generate data from an LBA model.

Usage

1
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

1
# to be added later

glba documentation built on May 2, 2019, 4:43 p.m.