UGMF | R Documentation |
UGM with time varying drift rate. Specifically, the stimulus strength changes from
E_{01}
to E_{02}
at time t_0
. Identified by (Trueblood et al., 2021) as
a way to improve recovery of the leakage rate and urgency. Drift rate becomes
v(x,t) = E_{01}*(1 + k*t) + (k/(1+k*t) - L)*x \ \text{ if } \ t < t_0
and
v(x,t) = E_{02}*(1 + k*t) + (k/(1+k*t) - L)*x \ \text{ if } \ t >= t_0.
dUGMF(rt, resp, phi, x_res = "default", t_res = "default")
pUGMF(rt, resp, phi, x_res = "default", t_res = "default")
rUGMF(n, phi, dt = 1e-05)
rt |
vector of response times |
resp |
vector of responses ("upper" and "lower") |
phi |
parameter vector in the following order:
|
x_res |
spatial/evidence resolution |
t_res |
time resolution |
n |
number of samples |
dt |
step size of time. We recommend 0.00001 (1e-5) |
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).
Raphael Hartmann & Matthew Murrow
Cisek, P., Puskas, G. A., & El-Murr, S. (2009). Decisions in changing conditions: the urgency-gating model. Journal of Neuroscience, 29(37), 11560-11571.
Trueblood, J. S., Heathcote, A., Evans, N. J., & Holmes, W. R. (2021). Urgency, leakage, and the relative nature of information processing in decision-making.
# Probability density function
dUGMF(rt = c(1.2, 0.6, 0.4), resp = c("upper", "lower", "lower"),
phi = c(0.3, 0.5, 1.0, 0.9, 0.5, 0.5, 0.5, 1.0, 1.5, 0.0, 0.0, 1.0))
# Cumulative distribution function
pUGMF(rt = c(1.2, 0.6, 0.4), resp = c("upper", "lower", "lower"),
phi = c(0.3, 0.5, 1.0, 0.9, 0.5, 0.5, 0.5, 1.0, 1.5, 0.0, 0.0, 1.0))
# Random sampling
rUGMF(n = 100, phi = c(0.3, 0.5, 1.0, 0.9, 0.5, 0.5, 0.5, 1.0, 1.5, 0.0, 0.0, 1.0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.