Skip to contents

Density and random generation function for the Diffusion Decision Model.

Usage

dddm(rt, response, drift, bound, ndt, zr = 0.5, log = TRUE)

rddm(n, drift, bound, ndt, zr = 0.5)

Arguments

rt

Vector of response times for which the density should be returned

response

Vector of responses for which the density should be returned

drift

Drift rates of the ddm

bound

Boundary separation of the ddm

ndt

Non-decision time of the ddm

zr

relative starting point of the ddm

log

Logical, indicating if log-densities should be returned (default = TRUE)

n

Number of random samples to generate