ezDiffusion: EZ Diffusion

Description Usage Arguments Examples

Description

Calculate the parameters of the EZ diffusion model from mrt, vrt, pc...

Usage

1
ezDiffusion(proportion_correct, rt_variance, rt_mean, s = 0.1, data)

Arguments

proportion_correct

Character. The name of the variable that contains proportion of correct trials.

rt_variance

Character. The name of the variable that contains the variance of reaction times for correct decisions

rt_mean

Character. The name of the variable that contains the mean of reaction times for correct decisions.

s

Numeric. A scaling constant. Take a look at the literature, because different authors use different scaling constants.

data

A data.frame that conitains the above-specified variables.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
data <- data.frame(
  prop_correct = runif(n = 100, min = 0.2, max = .8)
  , rt_mean = runif(n = 100, min = .2, max = .8)
  , rt_var = runif(n = 100, min = .01, max = .1)
)

ezDiffusion(
  data = data
  , proportion_correct = "prop_correct"
  , rt_variance = "rt_var"
  , rt_mean = "rt_mean"
 )

mariusbarth/ezDiffusion documentation built on May 29, 2019, 3:44 a.m.