ez_diffusion_model: The EZ-diffusion model

Description Usage Arguments Examples

Description

This is a convenience wrapper function for the EZ-diffusion model.

Usage

1
ez_diffusion_model(data, id, rt, correct, within = NULL, s = 0.1)

Arguments

data

A data.frame that contains the data.

id

Character. The name of the variable that contains the participant identifier.

rt

Character. The name of the variable that contains the reaction times.

correct

Character. The name of the variable that codes correct vs. erroneous decision. Needs to be 0 = erroneous and 1 = correct.

within

Character. Possibly a vector of names of variables that contain within-subjects factors.

s

Numeric. An optional scaling constant.

Examples

1
2
3
4
5
6
data <- data.frame(
  id = rep(1:150, each = 100)
  , rt = runif(150 * 100, min = .2, max = .8)
  , correct = sample(0:1, size = 150 * 100, replace = TRUE)
)
ez_diffusion_model(data = data, id = "id", rt = "rt", correct = "correct")

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