DDModeling is a R-package. It’s goal is to give researchers access to an easy to use toolset for simulating and fitting drift diffusion models in cognitive psychology.

Installation

You can install the released version of DDModeling from GitHub

Example

This is a basic example to show you how to generate a drift diffusion model and conduct a simulation with it

library(DDModeling)
# First specify a model
DSTP_M1 <-  DDModel(model="DSTP",task="flanker",
                    CDF_perc = c(0.1,0.3,0.5,0.7,0.9),CAF_perc = c(0.0,0.2,0.4,0.6,0.8,1.0))
# Now simulate some data
R1 <- Sim_DDModel(model = DSTP_M1,trials = 10000)

More Information

For more information visit the projects website here