Skip to main content

Inverse Gaussian Regression: How Much Faster Do We Recognize Common Words?

Inverse Gaussian regression in R with glm() and lme4, on reaction times in a lexical decision task: the distribution of the time to reach a threshold, a variance that grows with the cube of the mean, identity against log link, why transforming reaction times changes interactions, comparison with the normal, gamma and log-normal, mixed models with crossed subjects and words, checks and APA reporting.

The question: milliseconds

You see a string of letters and must press a button as fast as you can: is it a word or not? Cat takes less time than vole. The more frequent a word is in the language, the faster we recognize it. By how many milliseconds? And is the gain larger for people who learned English as a foreign language?

Reaction times are the daily bread of experimental psychology, and they have an awkward distribution: always positive, with a long tail to the right, and more variable when they are slower. The usual remedy is to transform them (the logarithm, or \(-1/RT\)) until they look normal, and to run a linear model. But a transformed time is no longer a time. “The logarithm is 0.03 smaller” is not an answer to “how many milliseconds?”. Worse: an interaction that exists in milliseconds may vanish in logarithms, and the other way round (Lo & Andrews, 2015).

A generalized linear model does not transform the data. It chooses a distribution that has the right shape, and keeps the mean in milliseconds. The inverse Gaussian is such a distribution, and it comes with a theory of what a reaction time is.

Code
library(lme4)       # glmer(): generalized linear mixed models
library(ggplot2)

# number formats for the text
f0   <- function(x) formatC(x, format = "f", digits = 0, big.mark = ",")
f1   <- function(x) formatC(x, format = "f", digits = 1, big.mark = ",")
f2   <- function(x) formatC(x, format = "f", digits = 2, big.mark = ",")
f3   <- function(x) formatC(x, format = "f", digits = 3, big.mark = ",")
# no leading zero
nz <- function(x, d = 2) sub("^(-?)0", "\\1", formatC(x, format = "f", digits = d))
pval <- function(p) if (p < .001) "< .001" else paste("=", nz(p, 3))
num  <- function(x) trimws(format(x, big.mark = ","))

1. The data

The experiment is in the package languageR, the companion of Baayen (2008): 21 people decided for 79 English nouns (animals and plants) whether they are words. We read it from its copy on GitHub:

Code
path <- tempfile(fileext = ".rda")
download.file(
  "https://raw.githubusercontent.com/cran/languageR/master/data/lexdec.rda",
  path,
  mode = "wb",
  quiet = TRUE
)
load(path)
words <- with(
  lexdec,
  data.frame(
    subject = Subject,
    word = Word,
    rt = exp(RT), # the file has the log of the milliseconds
    correct = Correct == "correct",
    foreign = as.integer(NativeLanguage == "Other"),
    freq = Frequency - mean(Frequency),
    length = Length - mean(Length)
  )
)
c(trials = nrow(words), wrong = sum(!words$correct))
trials  wrong 
  1659     65 
Code
words <- subset(words, correct) # the usual practice: correct answers only
c(
  trials = nrow(words),
  subjects = length(unique(words$subject)),
  words = length(unique(words$word))
)
  trials subjects    words 
    1594       21       79 
Code
summary(words$rt)
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
  365.0   502.2   571.0   610.0   663.0  1709.0 

rt is the reaction time in milliseconds. freq is the logarithm of the frequency of the word in a large collection of texts, centered: one unit more means about 2.7 times as frequent. foreign is 1 for the participants whose native language is not English, length the number of letters, centered. There are 1,594 correct answers.


2. Look at the data

Code
pa <- ggplot(words, aes(rt)) +
  geom_histogram(binwidth = 25, fill = "#2a78d6", colour = "white", linewidth = 0.1) +
  labs(title = "Reaction times", x = "milliseconds", y = "answers") +
  theme_bw()
bysub <- aggregate(rt ~ subject + foreign, data = words, FUN = function(v) {
  c(mean = mean(v), sd = sd(v))
})
bysub <- data.frame(
  mean = bysub$rt[, "mean"],
  sd = bysub$rt[, "sd"],
  native = ifelse(bysub$foreign == 1, "other", "English")
)
pb <- ggplot(bysub, aes(mean, sd, colour = native)) +
  geom_point(size = 2.6) +
  scale_colour_manual(
    values = c(English = "#2a78d6", other = "#eb6834"),
    name = "native language"
  ) +
  labs(title = "Mean and standard deviation of each person", x = "mean (ms)", y = "SD (ms)") +
  theme_bw() +
  theme(legend.position = "bottom")
patchwork::wrap_plots(pa, pb, ncol = 1)

Plot: 2. Look at the data

Code
power <- coef(lm(log(sd) ~ log(mean), data = bysub))[[2]]
power
[1] 1.389799

The distribution has a long right tail, and slow people are more variable: the SD grows with the mean, and faster than in proportion. On a log–log scale the slope is 1.4 (a slope of 1 would be proportional, as for the gamma; 1.5 is the inverse Gaussian).


3. The model step by step, with formulas

Step 1: a story about a decision

Imagine that the brain collects evidence. It starts at zero, drifts upwards with speed \(v\), and shakes randomly on the way. When it reaches a threshold \(a\), the button is pressed. The time of the first passage through the threshold has an inverse Gaussian distribution (also called the Wald distribution; Folks & Chhikara, 1978), with

\[\mu = \frac{a}{v} \;\text{(mean)}, \qquad \lambda = a^2 \;\text{(shape)}\]

A simulation of such random walks:

Code
set.seed(101)
v <- 0.1
a <- 30
steps <- 1500 # drift per millisecond, threshold
walk <- function() {
  w <- cumsum(v + rnorm(steps))
  hit <- which(w >= a)[1]
  list(path = w, time = hit)
}
times <- replicate(4000, walk()$time)
few <- do.call(
  rbind,
  lapply(1:6, function(i) {
    w <- walk()
    n <- if (is.na(w$time)) steps else w$time
    data.frame(walk = i, t = 1:n, x = w$path[1:n])
  })
)
pa <- ggplot(few, aes(t, x, group = walk, colour = factor(walk))) +
  geom_line(linewidth = 0.4) +
  geom_hline(yintercept = a, linetype = "dashed") +
  guides(colour = "none") +
  labs(title = "Six decisions: evidence until the threshold", x = "milliseconds", y = "evidence") +
  theme_bw()
dig <- function(x, mu, lambda) {
  sqrt(lambda / (2 * pi * x^3)) * exp(-lambda * (x - mu)^2 / (2 * mu^2 * x))
} # the density
curve_data <- data.frame(t = 10:1200); curve_data$d <- dig(curve_data$t, a / v, a^2)
pb <- ggplot(data.frame(times), aes(times)) +
  geom_histogram(
    aes(y = after_stat(density)),
    binwidth = 25,
    fill = "grey80",
    colour = "white",
    na.rm = TRUE
  ) +
  geom_line(data = curve_data, aes(t, d), colour = "#eb6834", linewidth = 1) +
  labs(
    title = "4,000 such times, and the inverse Gaussian density",
    x = "milliseconds",
    y = "density"
  ) +
  theme_bw()
patchwork::wrap_plots(pa, pb, ncol = 1)

Walks – Step 1: a story about a decision

Code
c(mean_of_simulation = mean(times, na.rm = TRUE), theory = a / v)
mean_of_simulation             theory 
          304.4593           300.0000 

Step 2: the variance

\[E(y) = \mu, \qquad \text{Var}(y) = \frac{\mu^3}{\lambda} = \phi\,\mu^3\]

The variance grows with the cube of the mean. Compare: constant for the normal, \(\mu\) for Poisson, \(\mu^2\) for the gamma, \(\mu^3\) for the inverse Gaussian. Slow conditions are much more variable, and have a longer tail.

Step 4: the weights

The likelihood equations weight each observation by the inverse of its variance, \(1/\mu^3\). The slow, noisy conditions count less. By hand, for the identity link, this is a repeated weighted least squares:

Code
X <- model.matrix(~ freq * foreign, data = words); y <- words$rt
beta <- coef(lm(rt ~ freq * foreign, data = words))                    # start from OLS
for (it in 1:50) {
  mu <- drop(X %*% beta)
  new <- coef(lm.wfit(X, y, w = 1 / mu^3)) # identity link: plain weighted least squares
  if (max(abs(new - beta)) < 1e-9) {
    break
  }
  beta <- new
}
fit <- glm(
  rt ~ freq * foreign,
  family = inverse.gaussian(link = "identity"),
  data = words,
  start = coef(lm(rt ~ freq * foreign, data = words))
)
rbind(by_hand = beta, glm = coef(fit))
        (Intercept)      freq  foreign freq:foreign
by_hand    568.8714 -19.77006 99.88254    -20.07592
glm        568.8714 -19.77006 99.88244    -20.07548

(glm() needs starting values with the identity link. The coefficients of OLS are good ones.)


4. Fitting the model and reading the output

Code
summary(fit)

Call:
glm(formula = rt ~ freq * foreign, family = inverse.gaussian(link = "identity"), 
    data = words, start = coef(lm(rt ~ freq * foreign, data = words)))

Coefficients:
             Estimate Std. Error t value Pr(>|t|)    
(Intercept)   568.871      4.353 130.695  < 2e-16 ***
freq          -19.770      3.416  -5.787 8.62e-09 ***
foreign        99.882      7.859  12.709  < 2e-16 ***
freq:foreign  -20.075      6.076  -3.304 0.000974 ***
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

(Dispersion parameter for inverse.gaussian family taken to be 9.39331e-05)

    Null deviance: 0.14780  on 1593  degrees of freedom
Residual deviance: 0.12241  on 1590  degrees of freedom
AIC: 19959

Number of Fisher Scoring iterations: 3
Code
b <- coef(fit); s <- coef(summary(fit))
phi <- summary(fit)$dispersion
  • (Intercept): 569 ms, the mean for a native speaker and a word of average frequency.
  • freq: -19.8: for native speakers, each unit of log frequency saves 19.8 ms.
  • foreign: the others are 100 ms slower at average frequency.
  • freq:foreign: -20.1: for them, one unit of frequency saves 20.1 ms more, that is 39.8 ms in all.
  • Dispersion = 9.39e-05: \(\phi = 1/\lambda\). The predicted SD at a mean of \(\mu\) is \(\sqrt{\phi\mu^3}\): 108 ms at 500 ms and 179 ms at 700 ms.

These standard errors treat the 1,594 answers as independent. They are not, and section 6 repairs that. First, the distribution.


5. Which distribution, and which scale?

Code
start_ms <- coef(lm(rt ~ freq * foreign, data = words))
fams <- list(
  `normal, identity` = glm(rt ~ freq * foreign, family = gaussian, data = words),
  `gamma, identity` = glm(
    rt ~ freq * foreign,
    family = Gamma("identity"),
    data = words,
    start = start_ms
  ),
  `inverse Gaussian, identity` = fit,
  `inverse Gaussian, log` = glm(rt ~ freq * foreign, family = inverse.gaussian("log"), data = words)
)
logs <- lm(log(rt) ~ freq * foreign, data = words)
# on the scale of milliseconds
aics <- c(sapply(fams, AIC), `log-normal` = AIC(logs) + 2 * sum(log(words$rt)))
cbind(AIC = sort(round(aics, 1)))
                               AIC
inverse Gaussian, log      19958.5
inverse Gaussian, identity 19959.1
log-normal                 19988.1
gamma, identity            20103.1
normal, identity           20545.5

The inverse Gaussian describes the reaction times best, then the log-normal and the gamma, and the normal distribution is far behind: an AIC 586 points larger. Between the two links there is little to choose.

The interaction depends on the scale

Does frequency help the foreign speakers more? Ask in four ways:

Code
inv <- lm(I(-1000 / rt) ~ freq * foreign, data = words)
int <- rbind(
  `milliseconds (inverse Gaussian, identity)` = s["freq:foreign", 1:4],
  `ratios (inverse Gaussian, log link)` = coef(summary(fams[[4]]))["freq:foreign", 1:4],
  `log(RT), least squares` = coef(summary(logs))["freq:foreign", 1:4],
  `-1000/RT, least squares` = coef(summary(inv))["freq:foreign", 1:4]
)
colnames(int) <- c("estimate", "SE", "t", "p")
round(int, 4)
                                          estimate     SE       t      p
milliseconds (inverse Gaussian, identity) -20.0755 6.0761 -3.3040 0.0010
ratios (inverse Gaussian, log link)        -0.0269 0.0097 -2.7604 0.0058
log(RT), least squares                     -0.0262 0.0087 -3.0215 0.0026
-1000/RT, least squares                    -0.0316 0.0137 -2.3153 0.0207

In milliseconds the interaction is clear, t = -3.3. On the log scale it is weaker, t = -3.0, and for the reciprocal weaker again, t = -2.3. It is the same data. Slow people have larger differences of every kind, in milliseconds. A transformation that compresses long times compresses this too. Here the interaction survives; in other data it disappears, or even turns round. So the scale must be chosen for a reason: a theory in milliseconds (stages that add up) needs milliseconds. Whether the times look normal is no argument, because a generalized linear model does not need them to.

Code
grid <- expand.grid(freq = seq(-2.8, 3, by = 0.1), foreign = 0:1)
grid$rt <- predict(fit, grid, type = "response")
grid$native <- ifelse(grid$foreign == 1, "other", "English")
bins <- aggregate(
  rt ~ cut(freq, quantile(freq, 0:6 / 6), include.lowest = TRUE, labels = FALSE) + foreign,
  data = words,
  FUN = mean
)
bins$freq <- aggregate(
  freq ~ cut(freq, quantile(freq, 0:6 / 6), include.lowest = TRUE, labels = FALSE) + foreign,
  data = words,
  FUN = mean
)$freq
bins$native <- ifelse(bins$foreign == 1, "other", "English")
ggplot(grid, aes(freq, rt, colour = native)) +
  geom_line(linewidth = 1) +
  geom_point(data = bins, size = 2.4) +
  scale_colour_manual(
    values = c(English = "#2a78d6", other = "#eb6834"),
    name = "native language"
  ) +
  labs(
    title = "Mean reaction time and word frequency",
    subtitle = "Lines: inverse Gaussian model. Points: means in sixths of the frequency",
    x = "log frequency (centred)",
    y = "milliseconds"
  ) +
  theme_bw() +
  theme(legend.position = "bottom")

The interaction depends on the scale


6. People and words: a mixed model

Each person answered many times, and each word was answered by many people. Fast people are fast for all words, hard words are hard for everybody. The answers are crossed in subjects and words, and both are samples from larger populations. A generalized linear mixed model has a random intercept for each (Baayen et al., 2008; Lo & Andrews, 2015):

\[\mu_{ij} = x_{ij}^\top\beta + u_i + w_j, \qquad u_i \sim N(0, \sigma_u^2), \quad w_j \sim N(0, \sigma_w^2)\]

Code
mixed <- glmer(
  rt ~ freq * foreign + (1 | subject) + (1 | word),
  data = words,
  family = inverse.gaussian(link = "identity"),
  control = glmerControl(optimizer = "bobyqa", optCtrl = list(maxfun = 2e5))
)
sm <- coef(summary(mixed))
round(sm, 4)
             Estimate Std. Error t value Pr(>|z|)
(Intercept)  568.0473    17.6888 32.1134    0e+00
freq         -17.7037     3.8056 -4.6521    0e+00
foreign       98.3724    24.6420  3.9921    1e-04
freq:foreign -18.6494     4.1338 -4.5115    0e+00
Code
VarCorr(mixed)
 Groups  Name        Std.Dev.
 word    (Intercept) 33.227  
 subject (Intercept) 77.999  
Code
compare <- data.frame(
  term = names(b),
  glm = b,
  SE_glm = s[, 2],
  mixed = sm[, 1],
  SE_mixed = sm[, 2],
  row.names = NULL
)
print(cbind(term = compare$term, round(compare[, -1], 2)), row.names = FALSE)
         term    glm SE_glm  mixed SE_mixed
  (Intercept) 568.87   4.35 568.05    17.69
         freq -19.77   3.42 -17.70     3.81
      foreign  99.88   7.86  98.37    24.64
 freq:foreign -20.08   6.08 -18.65     4.13
Code
linear <- lmer(rt ~ freq * foreign + (1 | subject) + (1 | word), data = words)
loglin <- lmer(log(rt) ~ freq * foreign + (1 | subject) + (1 | word), data = words)
t_int <- c(
  inverse_gaussian = sm["freq:foreign", 3],
  normal = coef(summary(linear))["freq:foreign", 3],
  log_normal = coef(summary(loglin))["freq:foreign", 3]
)
t_int
inverse_gaussian           normal       log_normal 
       -4.511453        -4.834974        -4.216698 
Code
t_lang <- c(glm = s["foreign", 3], mixed = sm["foreign", 3])
t_lang
     glm    mixed 
12.70901  3.99207 
  • The difference between the two language groups is about the same (98 ms), but its standard error is 3.1 times as large: it compares 12 with 9 people, not hundreds of answers. The t falls from 12.7 to 4.0.
  • The effect of frequency compares words: its standard error grows a little.
  • The interaction is a comparison within people and words, and it becomes more precise, because the mixed model removes their differences: SE 4.1 instead of 6.1.
  • People differ by an SD of 78 ms, words by 33 ms.

The standard errors of glmer() with this family are known to be rough, and Lo and Andrews recommend it nevertheless for the fit. With only 21 people, treat a z of 2 as weak evidence. Random slopes (a personal effect of frequency) would be the next step.


7. Checking the model

Code
pig <- function(x, mu, lambda) {
  pnorm(sqrt(lambda / x) * (x / mu - 1)) +
    exp(2 * lambda / mu) * pnorm(-sqrt(lambda / x) * (x / mu + 1))
} # the distribution function
quantile_res <- function(y, mu, phi) qnorm(pmin(pmax(pig(y, mu, 1 / phi), 1e-12), 1 - 1e-12))
phi_m  <- sum(residuals(mixed, type = "pearson")^2) / (nrow(words) - 6)
chk <- rbind(
  data.frame(
    r = quantile_res(words$rt, fitted(fit), phi),
    model = "inverse Gaussian, no random effects"
  ),
  data.frame(r = quantile_res(words$rt, fitted(mixed), phi_m), model = "inverse Gaussian, mixed"),
  data.frame(
    r = rstandard(lm(rt ~ freq * foreign, data = words)),
    model = "normal, no random effects"
  ),
  data.frame(r = as.numeric(scale(resid(linear))), model = "normal, mixed")
)
chk <- do.call(
  rbind,
  lapply(split(chk, chk$model), function(d) cbind(d, q = qqnorm(d$r, plot.it = FALSE)$x))
)
ggplot(chk, aes(q, r)) +
  geom_abline(colour = "grey60") +
  geom_point(alpha = 0.3, size = 0.8, colour = "#2a78d6") +
  facet_wrap(~model) +
  coord_cartesian(ylim = c(-5, 8)) +
  labs(
    title = "Quantile residuals against the normal distribution",
    x = "normal quantile",
    y = "residual"
  ) +
  theme_bw()

Checks – 7. Checking the model

Code
tail_share <- tapply(chk$r, chk$model, function(v) mean(v > 3))
cbind(percent_above_3_SD = round(100 * tail_share, 2))
                                    percent_above_3_SD
inverse Gaussian, mixed                           1.07
inverse Gaussian, no random effects               0.75
normal, mixed                                     1.51
normal, no random effects                         1.88

If the model is right, the points lie on the line. The normal models have a long right tail: 1.5% of the residuals of the mixed normal model are above 3 SD, where 0.13% are expected. The inverse Gaussian models follow the line better over most of the range, and their tail is shorter (1.1% for the mixed one), but still too long: a few very slow answers (lapses of attention) remain. They are usually cut off by a rule that is fixed before looking at the results.


8. Things to keep in mind

  • The theory of the single threshold is a simplification. Reaction times also contain the time to see and to press. Adding a constant gives the shifted Wald, and a normal or exponential part the ex-Wald (Heathcote, 2004). Two thresholds, with errors, lead to the diffusion model.
  • Use it as a convenient shape, not as proof of the theory. The log-normal or the gamma may fit as well in other data.
  • Identity link: watch the sign. Nothing keeps the mean positive. With reaction times it is never a problem; with small means it is.
  • Choose the link and the scale before you see the interaction. An interaction that exists on one scale only is removable: say so, and say which scale your theory speaks.
  • Outliers and cut-offs. Report the rule and how many answers it removed.
  • Errors. We left out wrong answers. If one condition has more of them, speed and accuracy must be analyzed together.
  • Random effects for people and items. Averaging over words first, or over people, hides one of the two.
  • Starting values are needed for the identity link. Scale and center the predictors, or glmer() will not converge.

9. Reporting the results in APA style

A report (APA 7th edition) needs the distribution and the link with reasons, the exclusions, the random effects, the estimates in milliseconds, and the comparison with other distributions if the choice matters. The numbers come from the R objects:

Code
ci_low <- sm[, 1] - 1.96 * sm[, 2]; ci_high <- sm[, 1] + 1.96 * sm[, 2]
apa_table <- data.frame(
  Term = c(
    "Intercept", "Frequency (log, centred)", "Native language other than English",
    "Frequency × native language"
  ),
  b = f1(sm[, 1]),
  SE = f1(sm[, 2]),
  CI = paste0("[", f1(ci_low), ", ", f1(ci_high), "]"),
  z = f2(sm[, 3]),
  p = sapply(sm[, 4], function(p) sub("^= ", "", pval(p)))
)

Method (data analysis):

Reaction times of correct lexical decisions (1,594 answers of 21 participants to 79 words; Baayen, 2008) were analyzed with a generalized linear mixed model with an inverse Gaussian distribution and an identity link (Lo & Andrews, 2015), so that effects are in milliseconds. The inverse Gaussian was preferred to the normal, gamma and log-normal distributions by the AIC. Fixed effects were log word frequency (centered), native language (English or other) and their interaction; participants and words had random intercepts. Analyses were conducted in R (Version 4.6.2; R Core Team, 2026) with the package lme4 (Bates et al., 2015).

Results:

Native speakers recognized words of average frequency in 568 ms. More frequent words were recognized faster, b = -17.7 ms per log unit, SE = 3.8, z = -4.65, p < .001, and participants with another native language were slower, b = 98.4 ms, SE = 24.6, z = 3.99, p < .001. They also gained more from frequency, b = -18.6 ms, SE = 4.1, z = -4.51, p < .001 (Table 1). The interaction had the same sign on the log scale (t = -4.22).

Table 1

Inverse Gaussian Mixed Model of Reaction Times (ms)

Term b SE 95% CI z p
Intercept 568.0 17.7 [533.4, 602.7] 32.11 < .001
Frequency (log, centred) -17.7 3.8 [-25.2, -10.2] -4.65 < .001
Native language other than English 98.4 24.6 [50.1, 146.7] 3.99 < .001
Frequency × native language -18.6 4.1 [-26.8, -10.5] -4.51 < .001

Note. Identity link. Random intercepts: participants SD = 78 ms, words SD = 33 ms.

Points to remember:

  • Give the distribution, the link, and why.
  • Report effects in milliseconds.
  • State the random effects and the exclusions.
  • If the result depends on the scale, show it on more than one.

10. Summary

When Positive, right-skewed outcomes whose variance grows very fast with the mean: reaction times, times to a threshold
The distribution Time of the first passage of a drifting random walk; \(\text{Var} = \phi\mu^3\)
How (R) glm(y ~ x, family = inverse.gaussian("identity"), start = ...); mixed: lme4::glmer()
Links Identity: milliseconds that add; log: ratios that multiply
Against transforming Keeps the mean and the unit; interactions depend on the scale
Against the gamma The variance grows with \(\mu^3\) instead of \(\mu^2\)
Checks Quantile residuals, AIC against gamma and log-normal
Related pages Gamma regression, multilevel models, generalized linear models

References

Baayen, R. H. (2008). Analyzing linguistic data: A practical introduction to statistics using R. Cambridge University Press. https://doi.org/10.1017/CBO9780511801686

Baayen, R. H., Davidson, D. J., & Bates, D. M. (2008). Mixed-effects modeling with crossed random effects for subjects and items. Journal of Memory and Language, 59(4), 390–412. https://doi.org/10.1016/j.jml.2007.12.005

Bates, D., Mächler, M., Bolker, B., & Walker, S. (2015). Fitting linear mixed-effects models using lme4. Journal of Statistical Software, 67(1), 1–48. https://doi.org/10.18637/jss.v067.i01

Folks, J. L., & Chhikara, R. S. (1978). The inverse Gaussian distribution and its statistical application—A review. Journal of the Royal Statistical Society: Series B, 40(3), 263–275. https://doi.org/10.1111/j.2517-6161.1978.tb01039.x

Heathcote, A. (2004). Fitting Wald and ex-Wald distributions to response time data: An example using functions for the S-PLUS package. Behavior Research Methods, Instruments, & Computers, 36(4), 678–694. https://doi.org/10.3758/BF03206550

Lo, S., & Andrews, S. (2015). To transform or not to transform: Using generalized linear mixed models to analyse reaction time data. Frontiers in Psychology, 6, Article 1171. https://doi.org/10.3389/fpsyg.2015.01171