An introduction to repeated measures

R'da Hiyerarşik ve Karma Etkili Modeller

Richard Erickson

Data Scientist

Repeated measures

  • Follow same unit of study through time
  • e.g., cohort of students, individuals
  • More powerful because of individual-level variability observed
R'da Hiyerarşik ve Karma Etkili Modeller

Paired t-test

  • Special case of a t-test
  • Example of change in test scores pre- and post-intervention
  • Nice conceptual introduction to repeated measures
R'da Hiyerarşik ve Karma Etkili Modeller

Paired t-test in R

t.test(x1, x2, paired = TRUE)
R'da Hiyerarşik ve Karma Etkili Modeller

Repeated measures ANOVA

  • Conceptual extension of paired t-test
  • Tests if means are constant across time
  • Example of change in student test-scores with >2 tests
R'da Hiyerarşik ve Karma Etkili Modeller

Repeated measures in R

library(lmerTest)

anova(lmer(y ~ time + (1 | individual))
R'da Hiyerarşik ve Karma Etkili Modeller

Extension to lmer and glmer

  • Repeated measures a special type of mixed-effect
  • Can be applied to glmer as well
  • Powerful additional use of tool
  • Degrees of freedom is an open research method
R'da Hiyerarşik ve Karma Etkili Modeller

Let's practice!

R'da Hiyerarşik ve Karma Etkili Modeller

Preparing Video For Download...