R/fit_ezddm.R
ezddm.Rd
ezddm fits Wagenmaker et al.'s (2007) EZ-diffusion model for two-choice response time tasks using proportion correct, variance of correct response reaction times, and mean of correct reaction times (in seconds).
ezddm( propCorrect, rtCorrectVariance_seconds, rtCorrectMean_seconds, s = 0.1, nTrials = NULL )
propCorrect | proportion correct (apply edge correction if necessary) |
---|---|
rtCorrectVariance_seconds | variance of correct reaction times (in seconds) |
rtCorrectMean_seconds | mean of correct reaction times (in seconds) |
s | scaling parameter (often set to 0.1 or 1.0) |
nTrials | number of trials (useful for edge correction) (optional) |
A dataframe with a (boundary parameter), v (drift rate parameter), and Ter (non-decision time parameter)
Wagenmakers, E. J., van der Maas, H. L., & Grasman, R. P. (2007). An EZ-diffusion model for response time and accuracy. Psychonomic Bulletin & Review, 14(1), 3-22. doi:10.3758/BF03194023 (https://link.springer.com/article/10.3758/BF03194023)
Hause Lin
ezddm(.802, .112, .723)#> a v Ter #> 1 0.1399702 0.09993853 0.30003