| badlm | R Documentation |
A simulated repeated-measures experiment in which the two conditions have,
by construction, the same mean reaction time while differing radically in
every other respect. Condition A has a short non-decision time (50 ms) and
a wide, heavily right-skewed distribution; condition B has a long
non-decision time (450 ms) and a narrow, nearly symmetric one. Twenty
participants each contribute 25 trials per condition.
badlm
A data frame with 1,000 rows and 3 variables:
Participant identifier (factor, S01-S20).
Experimental condition, "A" or "B".
Reaction time, in seconds.
The dataset exists to demonstrate the limits of the summary-statistics
approach: a linear model - including a correctly specified linear mixed
model with a random intercept per participant - finds no effect of
Condition, because a difference in shift, in spread and in tail weight is
invisible to a comparison of means. It is used in the RT models vignette
and in the cogmod paper.
Participants differ in their overall speed through an additive offset (SD = 30 ms) applied identically to both conditions, so that each participant's true condition effect is exactly zero and a random intercept is the correctly specified model for the between-participant variation. The latent offsets are not included in the data.
Simulated; see data-raw/badlm.R for the generating code.
data(badlm)
# The two conditions have the same mean...
tapply(badlm$RT, badlm$Condition, mean)
# ...but nothing else in common
tapply(badlm$RT, badlm$Condition, sd)
# A mixed model finds nothing
if (requireNamespace("lme4", quietly = TRUE)) {
summary(lme4::lmer(RT ~ Condition + (1 | Participant), data = badlm))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.