A simulated data set used to demonstrate how to fit a linear mixed-effects model with lme4. There are 1000 participants. Each participants has up to 25 repeated measurements recorded.

lme_two

Format

A data frame with 3447 rows and 8 variables:

id

An ID variable grouping the repeated measurements

time_id

time point values

Y

Outcome

X1

Predictor Variable X1

X2

Predictor Variable X2

X3

Predictor Variable X3

X4

Predictor Variable X4

X5

Predictor Variable X5