Performing repeated measures analysis
Graeme L. Hickey
@graemeleehickey
www.glhickey.com graeme.hickey@liverpool.ac.uk
Performing repeated measures analysis Graeme L. Hickey @ - - PowerPoint PPT Presentation
Performing repeated measures analysis Graeme L. Hickey @ graemeleehickey www.glhickey.com graeme.hickey@liverpool.ac.uk Co Confl flicts s of f interest None Assistant Editor (Statistical Consultant) for EJCTS and ICVTS Wha What
Graeme L. Hickey
@graemeleehickey
www.glhickey.com graeme.hickey@liverpool.ac.uk
A B D A B D A B D
“Condition”: chocolate cake “Condition”: lemon cake “Condition”: cheesecake Measurement: taste score Measurement: taste score Measurement: taste score
A B D A B D A B D
Measurement: systolic BP Measurement: systolic BP Measurement: systolic BP
A B D A B D
Measurement: AV gradient Measurement: AV gradient
pre-surgery post-surgery
A B D Measurement taken Measurement taken
before treatment after treatment
A B D E F H E F H
Source: Vickers & Altman. BMJ. 2001; 323: 1123–4.
Placebo (n = 27) Acupuncture (n = 25) Difference between means (95% CI) P Follow-up 62.3 (17.9) 79.6 (17.1) 17.3 (7.5 to 27.1) <0.001 Change score 8.4 (14.6) 19.2 (16.1) 10.8 (.3 to 19.4) 0.014 ANCOVA 12.7 (4.1 to 21.3) 0.005
General rule-of-thumb: analysis of covariance (ANCOVA) has the highest statistical power Note: never use percentage change scores!
patient B visits only on days 5, 9, and 15)
Source: Matthews et al. BMJ. 1990; 300: 230–5.
Wide format
Subject Jan 01 Aug 30 Dec 08 A 120 113 115 B 94 94 110 C 140 145 160 D 100 101 100
Long format
Subject Date BP (mmHg) A Jan 01 120 A Aug 30 113 A Dec 08 115 B Jan 01 94 B Aug 30 94 B Dec 08 110 ⠇ ⠇ ⠇ D Aug 30 101 D Dec 08 100
Source: Gueorguieva & Krystal. Arch Gen Psychiatry. 2004; 61: 310–317.
Mean profile plot
Source: Matthews et al. BMJ. 1990; 300: 230–5.
Individual panel plots Individual plots grouped by treatment
Total variation Between- subjects variation Within- subjects variation Treatment Error due to subjects within treatment Time Treatment* Time Error
Tomorrow (14:15 – 15:45): Checking model assumptions with regression diagnostics
i. Greenhouse-Geisser ii. Huynh-Feldt
Outcome Time
Fixed effects regression line
Time Outcome
Fixed effects regression line + within-subject intercepts
Time Outcome
Within-subjects fixed effects regression lines
Time Outcome
𝑍
"# = 𝛾& + 𝑐&" + 𝛾( + 𝑐(" 𝑢"# + 𝜁"#
respectively, distributed N2(0, Σ)
between-subjects
measurements
1. Reduce the repeated measurements for each subject to a single value 2. Apply routine statistical methods on these summary values to compare treatments, e.g. using independent samples t-test, ANOVA, Mann-Whitney U-test, …
them in advance
T0 T1 T3 T4
Outcome ymax
T2 T0 T1 T3 T4
Outcome
T2 T0 T1 T3 T4
Outcome ypre
T2
ypost - ypre
T0 T1 T3 T4 T2
Outcome
Area under the curve Maximum measurement Time to reach maximum Mean follow-up – baseline
Change score Final value Time to a certain % increase/decrease Slope
T0 T1 T3 T4
Outcome
T2
ychange
T0 T1 T3 T4
Outcome
T2
yfinal
T0 T1 T3 T4
Outcome
T2
slope
T0 T1 T3 T4 T2
Outcome
Method Can it handle missing data? Can it handle unbalanced data? RM- ANOVA No – typically exclude patients with 1 or missing value No LMM Yes – for data that is missing (completely) at random Yes Summary statistics Depends on the choice of summary statistic Depends on the choice of summary statistic