SlideShare a Scribd company logo
Some illustrative examples on the
analysis of the SW-CRT
30/08/2016
Karla Hemming
Calendar time is a confounder
Why calendar time is a confounder…
Time effects
• When designing a SW-CRT time needs to
be allowed for in the sample size
calculation.
• Time also needs to be allowed for in the
analysis
Analysis
Analysis
• Summarise key characteristics by exposure / unexposed status
– Identify selection biases
• Analysis either GEE or mixed models
– Clustering
– Time effects
• Imbalance of calendar time between exposed / unexposed:
– The majority of the control observations will be before the
majority of the intervention observations
– Time is a confounder!
• Unadjusted effect meaningless
Treatment effect
• After accounting for any secular changes, what is the
effect of the intervention, averaged across steps?
• The intervention effect is modelled as a change in
level, constant across steps (or time)
0
0.1
0.2
0.3
0.4
0.5
0.6
0 1 2 3 4 5 6 7
MeanOutcome
Year
Interpretation of intervention effect in SW design: continuous time
Control Intervention
Estimated after
averaging across all
sites / time points in
each condition
0
0.05
0.1
0.15
0.2
0.25
0.3
0.35
0.4
1 2 3 4 5 6 7 8
Meanoutcome
Year
Interpretation of intervention effect in SW: categorical time
Control
Intervention
Example one
11
Example 1: Maternity sweeping
• Objective: evaluate a training scheme to improve the
rate of membrane sweeping in post term
pregnancies
– Primary outcome:
• Proportion of women having a membrane sweep
• Baseline rate 40%
• Hope to increase to 50% during 12 weeks post intervention
– Cluster design:
• 10 teams (clusters); 12 births per cluster per week
• Pragmatic design – rolled out when possible
• Transition period to allow training
12
Example 1: Maternity sweeping
(transition period)
Example 1: Underlying trend0
.2.4.6.8
20005/03/12 23/04/12 18/06/12 13/08/12
week commencing
Example 1: results
Unexposed
to
intervention
n=1417
Exposed to
intervention
n=1356
Relative Risk
P-
value
Number of women offered and accepting membrane sweeping
Number (%) 629 (44.4%) 634 (46.8%)
Cluster adjusted 1.06 (0.97, 1.16) 0.21
Time and cluster adjusted
Fixed effects time 0.88 (0.69, 1.05) 0.11
Linear time effect 0.90 (0.73, 1.11) 0.34
Example 1: Impact of secular trend
0
.2.4.6.8
20005/03/12 23/04/12 18/06/12 13/08/12
week commencing
Unadjusted RR = 1.06 95% CI (0.97, 1.16)
Adjusted (for time) RR = 0.88 95% CI (0.69, 1.05)
Rising Tide?
Contamination?
Explanations
• Rising tide
– General move towards improving care – perhaps due
to very initiative that prompted study investigators to
do this study
• Contamination
– Unexposed clusters became exposed before their
randomisation date
• Lack of precision
– Intervention wasn’t ruled out as being effective
Example 2
Example 2: Critical care outreach
• Intervention: Critical care outreach
• Setting: Hospital in Iran
• Clusters: Wards
• Outcome: Mortality
Example 2: Design
Example 2: Underlying trend
0
.05
.1
.15
07/10 04/1111/10 09/11
Study epoch (each epoch represents a four week period)
Example 2: results
Unexposed to
intervention
Exposed to
intervention
Treatment effect P-value
Number of Patients 7,802 10,880
Mortality
Number (%) 370 (4.74) 384 (3.53) OR (95% CI)
Unadjusted 0.73 (0.64, 0.85) 0.000
Cluster adjusted 1.02 (0.83, 1.26) 0.817
Fixed effects for time 0.82 (0.56, 1.19) 0.297
Linear effect for time 0.96 (0.76, 1.22) 0.750
Covariate adjusted 0.97 (0.64, 1.47) 0.489
Example 2: Underlying trend
0
.05
.1
.15
07/10 04/1111/10 09/11
Study epoch (each epoch represents a four week period)
Unadjusted OR = 1.02 95% CI (0.83, 1.26)
Adjusted OR = 0.82 95% CI (0.56,1.19)
Lack of power?
Explanations
• Rising tide
– General move towards improving care – perhaps due
to very initiative that prompted study investigators to
do this study
• Contamination
– Unexposed clusters became exposed before their
randomisation date
• Lack of precision
– Intervention wasn’t ruled out as being effective
Models fitted
• Mixed effects model
• Random effect for cluster
• Fixed effect for time and intervention
𝑌𝑖𝑗𝑙 = 𝜇 + 𝛽𝑗 + θ𝑋𝑖𝑗 + 𝑢𝑖 + 𝑒𝑖𝑗𝑙
𝑢𝑖~𝑁 0, 𝜎 𝑏 ; 𝑒𝑖𝑗𝑙 ~𝑁(0, 𝜎 𝑤)
(time j, cluster i, individual l )
Parameter estimation
• Models fitted used Stata 13
– Used meglm function
– Uses mean-variance adaptive Gauss-Hermite quadrature
– Default number of integration points (7)
– Experienced convergence difficulty (LOS example) then used
the Laplace approximation – but clear instability
• Used random effects
– GEE alternative
– GEE possibly more robust to model miss-specification
– GEE possibly problematic when small number of clusters (there
exist adjustments)
Model assumptions and extensions
Model assumptions 1
• Underlying secular trend
– The underlying secular trend is same across all clusters
Variation in underlying secular trends
S is strata
0
5
10
15
20
25
30
0 2 4 6 8 10 12
Meanoutcome
Year
Strata 1
Strata 2
Strata 3
Model assumptions 2
• Time invariant treatment effect
– There is no delayed intervention effect
– No change in intensity of the effect over the course of time
– No time by treatment interaction
– Time (since introduction) isn't an effect modifier
Time variant treatment effect
𝑌𝑖𝑗𝑙 = 𝜇 + 𝛽𝑗 + 𝜃𝑗 𝑋𝑖𝑗 + 𝑢𝑖 + 𝑒𝑖𝑗𝑙
0
5
10
15
20
25
30
1 2 3 4 5 6 7 8
Meanoutcome
Year
Control
Intervention
Model assumptions 3
• Intra cluster correlation
– The correlation between two individuals is independent of time
– Two observations in the same cluster / time period have the
same degree of correlation as two observations in the same
cluster but different time periods
Time
𝑌𝑖𝑗𝑙 = 𝜇 + 𝛽𝑗 + θ𝑋𝑖𝑗 + 𝑢𝑖 + 𝑣𝑖𝑗 + 𝑒𝑖𝑗𝑙
𝑢𝑖~𝑁 0, 𝜎𝑏 ; 𝑣𝑖𝑗~𝑁 0, 𝜎𝑣 ; 𝑒𝑖𝑗𝑙 ~𝑁(0, 𝜎 𝑤)
Model assumptions 4
• Treatment effect heterogeneity
– The effect of the intervention is the same across all clusters
– Typical assumption in CRTs
– In a meta-analysis common to assume between cluster
heterogeneity in treatment effect
𝑌𝑖𝑗𝑙 = 𝜇 + 𝛽𝑗 + 𝜃𝑖 𝑋𝑖𝑗 + 𝑢𝑖 + 𝑒𝑖𝑗𝑙
𝜃𝑖 ~𝑁(𝜃, 𝜎 𝜃)
Summary
• Time is a potential partial confounder
• Designs which are completely confounded with time shouldn’t be
used
• Time must be allowed for as a covariate in primary analysis
• Model extensions require sufficient power and pre-specification
References
• Scott JM, deCamp A, Juraska M, Fay MP, Gilbert PB. Finite-sample
corrected generalized estimating equation of population average treatment
effects in stepped wedge cluster randomized trials. Stat Methods Med Res.
2014 Sep 29. pii: 0962280214552092. [Epub ahead of print] PubMed PMID:
25267551.
• Ukoumunne OC, Carlin JB, Gulliford MC. A simulation study of odds ratio
estimation for binary outcomes from cluster randomized trials. Stat Med.
2007 Aug 15;26(18):3415-28. PubMed PMID: 17154246.
• Heo M, Leon AC. Comparison of statistical methods for analysis of
clustered binary observations. Stat Med. 2005 Mar 30;24(6):911-23.
PubMed PMID: 15558576
The stepped wedge cluster randomised trial workshop: session 5

More Related Content

PPTX
An introduction to the stepped wedge cluster randomised trial
PPTX
The stepped wedge cluster randomised trial workshop: Session 2
PDF
The stepped wedge cluster randomised trial workshop: session 3
PPTX
Stepped-wedge study design: a critique - Jon Nicholl
PPTX
The steppwed wedge cluster randomised trial workshop: Session 1 introduction
PPTX
The Stepped Wedge study - Karla Hemming
PPTX
The stepped wedge cluster randomised trial: session 6
PDF
Research and reporting methods for the stepped wedge cluster randomized trial...
An introduction to the stepped wedge cluster randomised trial
The stepped wedge cluster randomised trial workshop: Session 2
The stepped wedge cluster randomised trial workshop: session 3
Stepped-wedge study design: a critique - Jon Nicholl
The steppwed wedge cluster randomised trial workshop: Session 1 introduction
The Stepped Wedge study - Karla Hemming
The stepped wedge cluster randomised trial: session 6
Research and reporting methods for the stepped wedge cluster randomized trial...

What's hot (20)

PPTX
The stepped wedge cluster randomised trial workshop: session 4
PPTX
Innovative sample size methods for adaptive clinical trials webinar web ver...
PPTX
Webinar slides how to reduce sample size ethically and responsibly
PPTX
Flexible Clinical Trial Design - Survival, Stepped-Wedge & MAMS Designs
PDF
Some illustrative examples on the analysis of the SW-CRT
PPTX
Lecture_9_Sample_size_calculation_Summer_2016.pptx
PPTX
Power and sample size calculations for survival analysis webinar Slides
PPTX
Sample size calculation - a brief overview
PPTX
Designing studies with recurrent events | Model choices, pitfalls and group s...
PDF
Sample size estimation
PPTX
2020 trends in biostatistics what you should know about study design - slid...
PPTX
Sample size for survival analysis - a guide to planning successful clinical t...
PPTX
Innovative Sample Size Methods For Clinical Trials
PPTX
Non-inferiority and Equivalence Study design considerations and sample size
PPTX
Webinar slides- alternatives to the p-value and power
PDF
Network meta-analysis with integrated nested Laplace approximations
PPTX
Sample size for phase ii clinical trials-Simons design and mcp mod case studies
PDF
Nicholas Jewell MedicReS World Congress 2014
PPTX
Minimizing Risk In Phase II and III Sample Size Calculation
PPTX
Regression to the Mean
The stepped wedge cluster randomised trial workshop: session 4
Innovative sample size methods for adaptive clinical trials webinar web ver...
Webinar slides how to reduce sample size ethically and responsibly
Flexible Clinical Trial Design - Survival, Stepped-Wedge & MAMS Designs
Some illustrative examples on the analysis of the SW-CRT
Lecture_9_Sample_size_calculation_Summer_2016.pptx
Power and sample size calculations for survival analysis webinar Slides
Sample size calculation - a brief overview
Designing studies with recurrent events | Model choices, pitfalls and group s...
Sample size estimation
2020 trends in biostatistics what you should know about study design - slid...
Sample size for survival analysis - a guide to planning successful clinical t...
Innovative Sample Size Methods For Clinical Trials
Non-inferiority and Equivalence Study design considerations and sample size
Webinar slides- alternatives to the p-value and power
Network meta-analysis with integrated nested Laplace approximations
Sample size for phase ii clinical trials-Simons design and mcp mod case studies
Nicholas Jewell MedicReS World Congress 2014
Minimizing Risk In Phase II and III Sample Size Calculation
Regression to the Mean
Ad

Similar to The stepped wedge cluster randomised trial workshop: session 5 (20)

PDF
2nd CUTEHeart Workshop Manuel Gomes Presentation
PPTX
Experimental Design.pptx
PDF
Adjusting for treatment switching in randomised controlled trials
PPT
Validity andreliability
PPTX
Cochrane Collaboration
PPTX
Meta Analysis in Agriculture by Aman Vasisht
PPTX
Sample size calculation
PPTX
Understanding Meta-Analysis: A Comprehensive Guide
PPTX
Run Charts Part Two_ QI for Clinical Mentors.pptx
PPTX
Progress in AI and its application to Asset Management.pptx
PPTX
2.7.21 sampling methods data analysis
PPTX
Planning of experiment in industrial research
PDF
2010 smg training_cardiff_day1_session4_harbord
PPTX
Sample determinants and size
PPTX
Extending A Trial’s Design Case Studies Of Dealing With Study Design Issues
PDF
SEM ASA Perzynski 2021.pdf
PDF
Quantitative methodology part one.compressed
PPTX
Application of microbiological data
PPTX
Week 4 Interpreting Longitudinal Models (1).pptx
PDF
Determining the optimal sample size for study/ research question.
2nd CUTEHeart Workshop Manuel Gomes Presentation
Experimental Design.pptx
Adjusting for treatment switching in randomised controlled trials
Validity andreliability
Cochrane Collaboration
Meta Analysis in Agriculture by Aman Vasisht
Sample size calculation
Understanding Meta-Analysis: A Comprehensive Guide
Run Charts Part Two_ QI for Clinical Mentors.pptx
Progress in AI and its application to Asset Management.pptx
2.7.21 sampling methods data analysis
Planning of experiment in industrial research
2010 smg training_cardiff_day1_session4_harbord
Sample determinants and size
Extending A Trial’s Design Case Studies Of Dealing With Study Design Issues
SEM ASA Perzynski 2021.pdf
Quantitative methodology part one.compressed
Application of microbiological data
Week 4 Interpreting Longitudinal Models (1).pptx
Determining the optimal sample size for study/ research question.
Ad

Recently uploaded (20)

PDF
Data Engineering Interview Questions & Answers Cloud Data Stacks (AWS, Azure,...
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PPT
ISS -ESG Data flows What is ESG and HowHow
PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
PDF
Systems Analysis and Design, 12th Edition by Scott Tilley Test Bank.pdf
PPTX
Market Analysis -202507- Wind-Solar+Hybrid+Street+Lights+for+the+North+Amer...
PDF
Business Analytics and business intelligence.pdf
PPTX
QUANTUM_COMPUTING_AND_ITS_POTENTIAL_APPLICATIONS[2].pptx
PPTX
Introduction to Inferential Statistics.pptx
PPTX
IMPACT OF LANDSLIDE.....................
PPTX
SAP 2 completion done . PRESENTATION.pptx
PPTX
sac 451hinhgsgshssjsjsjheegdggeegegdggddgeg.pptx
PPTX
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
PDF
Data Engineering Interview Questions & Answers Batch Processing (Spark, Hadoo...
PDF
How to run a consulting project- client discovery
PPTX
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
PDF
Transcultural that can help you someday.
PPTX
Topic 5 Presentation 5 Lesson 5 Corporate Fin
PPTX
New ISO 27001_2022 standard and the changes
PPTX
(Ali Hamza) Roll No: (F24-BSCS-1103).pptx
Data Engineering Interview Questions & Answers Cloud Data Stacks (AWS, Azure,...
Acceptance and paychological effects of mandatory extra coach I classes.pptx
ISS -ESG Data flows What is ESG and HowHow
IBA_Chapter_11_Slides_Final_Accessible.pptx
Systems Analysis and Design, 12th Edition by Scott Tilley Test Bank.pdf
Market Analysis -202507- Wind-Solar+Hybrid+Street+Lights+for+the+North+Amer...
Business Analytics and business intelligence.pdf
QUANTUM_COMPUTING_AND_ITS_POTENTIAL_APPLICATIONS[2].pptx
Introduction to Inferential Statistics.pptx
IMPACT OF LANDSLIDE.....................
SAP 2 completion done . PRESENTATION.pptx
sac 451hinhgsgshssjsjsjheegdggeegegdggddgeg.pptx
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
Data Engineering Interview Questions & Answers Batch Processing (Spark, Hadoo...
How to run a consulting project- client discovery
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
Transcultural that can help you someday.
Topic 5 Presentation 5 Lesson 5 Corporate Fin
New ISO 27001_2022 standard and the changes
(Ali Hamza) Roll No: (F24-BSCS-1103).pptx

The stepped wedge cluster randomised trial workshop: session 5

  • 1. Some illustrative examples on the analysis of the SW-CRT 30/08/2016 Karla Hemming
  • 2. Calendar time is a confounder
  • 3. Why calendar time is a confounder…
  • 4. Time effects • When designing a SW-CRT time needs to be allowed for in the sample size calculation. • Time also needs to be allowed for in the analysis
  • 6. Analysis • Summarise key characteristics by exposure / unexposed status – Identify selection biases • Analysis either GEE or mixed models – Clustering – Time effects • Imbalance of calendar time between exposed / unexposed: – The majority of the control observations will be before the majority of the intervention observations – Time is a confounder! • Unadjusted effect meaningless
  • 7. Treatment effect • After accounting for any secular changes, what is the effect of the intervention, averaged across steps? • The intervention effect is modelled as a change in level, constant across steps (or time)
  • 8. 0 0.1 0.2 0.3 0.4 0.5 0.6 0 1 2 3 4 5 6 7 MeanOutcome Year Interpretation of intervention effect in SW design: continuous time Control Intervention Estimated after averaging across all sites / time points in each condition
  • 9. 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 1 2 3 4 5 6 7 8 Meanoutcome Year Interpretation of intervention effect in SW: categorical time Control Intervention
  • 11. 11 Example 1: Maternity sweeping • Objective: evaluate a training scheme to improve the rate of membrane sweeping in post term pregnancies – Primary outcome: • Proportion of women having a membrane sweep • Baseline rate 40% • Hope to increase to 50% during 12 weeks post intervention – Cluster design: • 10 teams (clusters); 12 births per cluster per week • Pragmatic design – rolled out when possible • Transition period to allow training
  • 12. 12 Example 1: Maternity sweeping (transition period)
  • 13. Example 1: Underlying trend0 .2.4.6.8 20005/03/12 23/04/12 18/06/12 13/08/12 week commencing
  • 14. Example 1: results Unexposed to intervention n=1417 Exposed to intervention n=1356 Relative Risk P- value Number of women offered and accepting membrane sweeping Number (%) 629 (44.4%) 634 (46.8%) Cluster adjusted 1.06 (0.97, 1.16) 0.21 Time and cluster adjusted Fixed effects time 0.88 (0.69, 1.05) 0.11 Linear time effect 0.90 (0.73, 1.11) 0.34
  • 15. Example 1: Impact of secular trend 0 .2.4.6.8 20005/03/12 23/04/12 18/06/12 13/08/12 week commencing Unadjusted RR = 1.06 95% CI (0.97, 1.16) Adjusted (for time) RR = 0.88 95% CI (0.69, 1.05) Rising Tide? Contamination?
  • 16. Explanations • Rising tide – General move towards improving care – perhaps due to very initiative that prompted study investigators to do this study • Contamination – Unexposed clusters became exposed before their randomisation date • Lack of precision – Intervention wasn’t ruled out as being effective
  • 18. Example 2: Critical care outreach • Intervention: Critical care outreach • Setting: Hospital in Iran • Clusters: Wards • Outcome: Mortality
  • 20. Example 2: Underlying trend 0 .05 .1 .15 07/10 04/1111/10 09/11 Study epoch (each epoch represents a four week period)
  • 21. Example 2: results Unexposed to intervention Exposed to intervention Treatment effect P-value Number of Patients 7,802 10,880 Mortality Number (%) 370 (4.74) 384 (3.53) OR (95% CI) Unadjusted 0.73 (0.64, 0.85) 0.000 Cluster adjusted 1.02 (0.83, 1.26) 0.817 Fixed effects for time 0.82 (0.56, 1.19) 0.297 Linear effect for time 0.96 (0.76, 1.22) 0.750 Covariate adjusted 0.97 (0.64, 1.47) 0.489
  • 22. Example 2: Underlying trend 0 .05 .1 .15 07/10 04/1111/10 09/11 Study epoch (each epoch represents a four week period) Unadjusted OR = 1.02 95% CI (0.83, 1.26) Adjusted OR = 0.82 95% CI (0.56,1.19) Lack of power?
  • 23. Explanations • Rising tide – General move towards improving care – perhaps due to very initiative that prompted study investigators to do this study • Contamination – Unexposed clusters became exposed before their randomisation date • Lack of precision – Intervention wasn’t ruled out as being effective
  • 24. Models fitted • Mixed effects model • Random effect for cluster • Fixed effect for time and intervention 𝑌𝑖𝑗𝑙 = 𝜇 + 𝛽𝑗 + θ𝑋𝑖𝑗 + 𝑢𝑖 + 𝑒𝑖𝑗𝑙 𝑢𝑖~𝑁 0, 𝜎 𝑏 ; 𝑒𝑖𝑗𝑙 ~𝑁(0, 𝜎 𝑤) (time j, cluster i, individual l )
  • 25. Parameter estimation • Models fitted used Stata 13 – Used meglm function – Uses mean-variance adaptive Gauss-Hermite quadrature – Default number of integration points (7) – Experienced convergence difficulty (LOS example) then used the Laplace approximation – but clear instability • Used random effects – GEE alternative – GEE possibly more robust to model miss-specification – GEE possibly problematic when small number of clusters (there exist adjustments)
  • 26. Model assumptions and extensions
  • 27. Model assumptions 1 • Underlying secular trend – The underlying secular trend is same across all clusters
  • 28. Variation in underlying secular trends S is strata 0 5 10 15 20 25 30 0 2 4 6 8 10 12 Meanoutcome Year Strata 1 Strata 2 Strata 3
  • 29. Model assumptions 2 • Time invariant treatment effect – There is no delayed intervention effect – No change in intensity of the effect over the course of time – No time by treatment interaction – Time (since introduction) isn't an effect modifier
  • 30. Time variant treatment effect 𝑌𝑖𝑗𝑙 = 𝜇 + 𝛽𝑗 + 𝜃𝑗 𝑋𝑖𝑗 + 𝑢𝑖 + 𝑒𝑖𝑗𝑙 0 5 10 15 20 25 30 1 2 3 4 5 6 7 8 Meanoutcome Year Control Intervention
  • 31. Model assumptions 3 • Intra cluster correlation – The correlation between two individuals is independent of time – Two observations in the same cluster / time period have the same degree of correlation as two observations in the same cluster but different time periods Time 𝑌𝑖𝑗𝑙 = 𝜇 + 𝛽𝑗 + θ𝑋𝑖𝑗 + 𝑢𝑖 + 𝑣𝑖𝑗 + 𝑒𝑖𝑗𝑙 𝑢𝑖~𝑁 0, 𝜎𝑏 ; 𝑣𝑖𝑗~𝑁 0, 𝜎𝑣 ; 𝑒𝑖𝑗𝑙 ~𝑁(0, 𝜎 𝑤)
  • 32. Model assumptions 4 • Treatment effect heterogeneity – The effect of the intervention is the same across all clusters – Typical assumption in CRTs – In a meta-analysis common to assume between cluster heterogeneity in treatment effect 𝑌𝑖𝑗𝑙 = 𝜇 + 𝛽𝑗 + 𝜃𝑖 𝑋𝑖𝑗 + 𝑢𝑖 + 𝑒𝑖𝑗𝑙 𝜃𝑖 ~𝑁(𝜃, 𝜎 𝜃)
  • 33. Summary • Time is a potential partial confounder • Designs which are completely confounded with time shouldn’t be used • Time must be allowed for as a covariate in primary analysis • Model extensions require sufficient power and pre-specification
  • 34. References • Scott JM, deCamp A, Juraska M, Fay MP, Gilbert PB. Finite-sample corrected generalized estimating equation of population average treatment effects in stepped wedge cluster randomized trials. Stat Methods Med Res. 2014 Sep 29. pii: 0962280214552092. [Epub ahead of print] PubMed PMID: 25267551. • Ukoumunne OC, Carlin JB, Gulliford MC. A simulation study of odds ratio estimation for binary outcomes from cluster randomized trials. Stat Med. 2007 Aug 15;26(18):3415-28. PubMed PMID: 17154246. • Heo M, Leon AC. Comparison of statistical methods for analysis of clustered binary observations. Stat Med. 2005 Mar 30;24(6):911-23. PubMed PMID: 15558576