exgauss {retimes}R Documentation

Ex-Gaussian Distribution

Description

Density function, parameter estimation by moments and random variable generation for the ex-Gaussian distribution.

Usage

dexgauss(q, mu = 0, sigma = 1, tau = 1)
mexgauss(x, n = length(x))
rexgauss(n, mu = 0, sigma = 1, tau = 1, positive = TRUE)

Arguments

x,q

Vector of reaction times.

n

Number of observations.

mu,sigma,tau

Parameters of the ex-Gaussian distribution.

positive

Logical: imposes the generation of a vector containing only positive values.

Details

The function mexgauss implements the method of moments to estimate the parameters of an ex-Gaussian distribution as described by Heathcote (1996).

Author(s)

Davide Massidda davide.massidda@humandata.it

References

Heathcote, A. (1996). RTSYS: A DOS application for the analysis of reaction time data. Behavior Research Methods, Instruments, & Computers, 28(3), 427-445.

Luce, R. D. (1986). Response times: their role in inferring elementary mental organization. New York: Oxford University Press.

See Also

timefit

Examples

# Vector of reaction times from Heathcote (1996):
RT <- c(474.688, 506.445, 524.081, 530.672, 530.869,
        566.984, 582.311, 582.940, 603.574, 792.358)
mexgauss(RT)

[Package retimes version 0.1-2 Index]