ex-gaussian: Ex-Gaussian Distribution

Description Usage Arguments Details Author(s) References See Also Examples

Description

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

Usage

1
2
3
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 [email protected]

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

1
2
3
4
# 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)

Example output

Reaction Time Analysis (version 0.1-2)
       mu     sigma       tau 
487.83351  31.95942  81.65869 

retimes documentation built on May 30, 2017, 3:32 a.m.