# Probability density function
dDDM(rt = c(1.2, 0.6, 0.4), resp = c("upper", "lower", "lower"),
phi = c(1, 0.3, 0.05, 1, 0.586, 0.174, 1, 1.0, 2.0, 1.0, 0.75, 0.0, 0.0, 1.0))
# Cumulative distribution function
pDDM(rt = c(1.2, 0.6, 0.4), resp = c("upper", "lower", "lower"),
phi = c(1, 0.3, 0.05, 1, 0.586, 0.174, 1, 1.0, 2.0, 1.0, 0.75, 0.0, 0.0, 1.0))
# Random sampling
rDDM(n = 100, phi = c(1, 0.3, 0.05, 1, 0.586, 0.174, 1, 1.0, 2.0, 1.0, 0.75, 0.0, 0.0, 1.0))
Run the code above in your browser using DataLab