Density (PDF), distribution function (CDF), and random sampler for a custom time- and weight-dependent (CSTM_TW) drift diffusion model.
dCSTM_TW(rt, resp, phi, x_res = "default", t_res = "default")pCSTM_TW(rt, resp, phi, x_res = "default", t_res = "default")
rCSTM_TW(n, phi, dt = 1e-05)
For the density a list of PDF values, log-PDF values, and the sum of the log-PDFs, for the distribution function a list of of CDF values, log-CDF values, and the sum of the log-CDFs, and for the random sampler a list of response times (rt) and response thresholds (resp).
vector of response times
vector of responses ("upper" and "lower")
parameter vector in your specified order
spatial/evidence resolution
time resolution
number of samples
step size of time. We recommend 0.00001 (1e-5)
Raphael Hartmann & Matthew Murrow
Murrow, M., & Holmes, W. R. (2023). PyBEAM: A Bayesian approach to parameter inference for a wide class of binary evidence accumulation models. Behavior Research Methods, 1-21.