EZdiffusion: Estimate Parameters for a Two-Boundary Unbiased Wiener...

Description Usage Arguments Value References Examples

View source: R/utility_functions.R

Description

Estimates the drift rate, boundary separation, and non-decision time for a two-boundary wiener process with an equidistant starting point using a R function adapted from Wagenmaker et al. (2007).

Usage

1
EZdiffusion(dat, s = 1)

Arguments

dat

a vector of inputs:

  1. Total number of trials;

  2. Number of correct responses;

  3. Mean response time for correct responses;

  4. Variance for corrct response times;

s

the scaling parameter (typically set to either 0.1 or 1)

Value

An estimate of the drift rate, boundary separation, and non-decision time. Bias is fixed to 0.5.

References

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, 3-22. https://doi.org/10.3758/BF03194023.

Examples

1
2
x = c( N = 100, Correct = 80, MRT = .8, VRT = .4^2 )
EZdiffusion( x )

rettopnivek/utilityf documentation built on March 1, 2021, 7:05 p.m.