PAM | R Documentation |
The PAM (aka dual-process model) is an evidence accumulation model developed to study cognition in conflict tasks like the Eriksen flanker task. It is similar to the SSP, but instead of a gradual narrowing of attention, target selection is discrete. Its total drift rate is
v(x,t) = 2*a_{outer}*p_{outer} + 2*a_{inner}*p_{inner} + a_{target}*p_{target},
where a_{inner}
and a_{outter}
are 0 if t >= t_s
and 1 otherwise. The PAM
otherwise maintains the parameters of the SDDM.
dPAM(rt, resp, phi, x_res = "default", t_res = "default")
pPAM(rt, resp, phi, x_res = "default", t_res = "default")
rPAM(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
White, C. N., Ratcliff, R., & Starns, J. J. (2011). Diffusion models of the flanker task: Discrete versus gradual attentional selection. Cognitive Psychology, 63(4), 210-238.
# Probability density function
dPAM(rt = c(1.2, 0.6, 0.4), resp = c("upper", "lower", "lower"),
phi = c(0.25, 0.5, -0.3, -0.3, 0.3, 0.25, 1.0, 0.5, 0.0, 0.0, 1.0))
# Cumulative distribution function
pPAM(rt = c(1.2, 0.6, 0.4), resp = c("upper", "lower", "lower"),
phi = c(0.25, 0.5, -0.3, -0.3, 0.3, 0.25, 1.0, 0.5, 0.0, 0.0, 1.0))
# Random sampling
rPAM(n = 100, phi = c(0.25, 0.5, -0.3, -0.3, 0.3, 0.25, 1.0, 0.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.