Learn R Programming

YEAB (version 1.0.6)

biexponential: Biexponential Model

Description

Implements a simpler biexponential model without the refractory period parameter, \(\delta\).

The simpler model is defined as: $$p(IRT = \tau) = p w e^{-w \tau} + (1 - p) b e^{-b \tau}$$ where \(w\) and \(b\) represent the within- and between-bout response rates, and \(p\) is the proportion of responses in bouts.

Usage

biexponential(irt)

Value

A data frame with estimated parameters \(w\) (proportion of responses in bouts), \(l0\) (within-bout mean IRT), and \(l1\) (between-bout mean IRT).

Arguments

irt

A numeric vector representing inter-response times.

Examples

Run this code
set.seed(43)
l1 <- 1 / 0.5
l2 <- 1 / 0.1
p <- 0.4
n <- 200
irt <- c(rexp(round(n * p), l1), rexp(round(n * (1 - p)), l2))
biexponential(irt)

Run the code above in your browser using DataLab