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
)

Arguments

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)

Value

A dataframe with a (boundary parameter), v (drift rate parameter), and Ter (non-decision time parameter)

References

Author

Hause Lin

Examples

ezddm(.802, .112, .723)
#> a v Ter #> 1 0.1399702 0.09993853 0.30003