Learn R Programming

retimes (version 0.1-0)

exgauss: Ex-Gaussian Distribution

Description

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

Usage

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

Arguments

x
Vector of quantiles.
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).

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

Run this code
# 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)

Run the code above in your browser using DataLab