This Vignette is designed to show all major functions of the addmtoolbox package, by walking through a toy aDDM model fit. The intro serves to provide some context and to expose the logic of the set of functions provided, in terms of the use-case that I had in mind when putting together the package.
There are essentially three (actually four, but as you will see the fourth is purely a programming artefact) aspects to be considered when fitting an aDDM.
There are several candidate parameters that can be changed in the model fitting process. Below are two lists. The list of currently implemented parameters and for completeness a list of candidate parameters that are planned to be implemented in the future.
Another question, which is especially important when fitting attentional drift diffusion models, however not when fitting traditional drift diffusion models, is whether to fit the model by trial or by condition.
What makes fitting attentional drift diffusions complicated and computationally demanding is the fact that our fit depends on the fixation process, in addition to the traditional reaction time and decision based fits. This introduces two sources of inefficiency.
First, the fixation process traditionally had to be modelled such that the property of the artificially created fixation process (location and duration) closely match the real fixation patterns. Every source of error will bias the model fits.
Second, model fits will become more unstable for a given amount of simulation runs due to the (potentially / fixation-model dependent) random effects of fixations on predictions.
While, as will be clear later on, fitting the aDDM by trial does not ultimately relieve us from having to find a suitable fixation model for our attentional data, it does reduce the number of simulation runs needed to get stable parameter estimates. This is especially true when the amount of unique trial conditions (unique displays that can occur in a given behavioral experiment) approach the number of trials. Such a case is quickly rached when following randomized experimental design with multiple unique items on the screen.
The ultimate motivation to fit by trial, is that it allows us to use the empirical fixation patterns exhibited by experiment participants on a by trial basis. This takes out the random effect of generated fixation-models, and tightly couples our fitting procedure to the exact fixation patterns used in conjunction to corresponding reaction times and decisions. This help to
Once we have fit our model and extracted the optimal set of parameters, we still need some fixation model that we use to generate a simulated dataset. This means that,
The benefits of this procedure become greater with increasing choice set sizes (and potential unique fixation paths), and may not materialize when fitting the model to a simple two-item choice.
Discussed in more detail in the model-fit vignette, the addmtoolbox package you can choose to fit either by condition or by trial. The fundamental difference is only that, when fitting by condition, you are going to need a fixation model that is supplied for the fitting procedure, while when fitting by trial, you can go through the fitting procedure with purely your (a tiny bit preprocessed but basically raw) empirical data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.