SlideShare a Scribd company logo
The practical use and limitation
   of mixed model analysis

          Jonas Ranstam
Analysis unit errors
Analysis unit errors are surprisingly common. Of 142
reviewed papers 42% involved such errors*.




* Bryant et al. How Many Patients? How Many Limbs?
  Analysis of Patients or Limbs in the Orthopaedic
  Litterature. J Bone Joint Surg Am.2006;88:41-45.
Exampel: Data from a blood pressure trial on 10 patients

seq     pat    mst    trt    eff
­­­    ­­­    ­­­    ­­­    ­­­
  1      1      1      0     4.2  
  2      1      2      0     4.4  
  3      2      1      0     4.1  
  4      3      1      0     4.3                  Placebo
  5      4      1      0     4.5  
  6      4      2      0     4.8  
  7      5      1      0     6.7
  
  8      6      1      1     6.1  
  9      7      1      1     4.9  
 10      8      1      1     5.4  
 11      8      2      1     5.7  
                                                  Active substance
 12      9      1      1     6.1  
 13      9      2      1     6.3  
 14     10      1      1     8.1  
 15     10      2      1     7.7  
Exampel: Data from a blood pressure trial on 10 patients




               Placebo                 Active substance
Student's t­test of the 10 patients 1st measurements



t = 1.86, df = 8, p­value = 0.10

Estimated treatment effect: 1.8 (­0.3 ­ 3.1) 



Assumptions 

1. Gaussian distribution
2. Equal variances between groups
3. Independent observations
Student's t­test of the 10 patients 15 measurements 
(including dependent observations)


t = 3.00, df = 13, p­value = 0.01

Estimated treatment effect: 1.6 (0.4 – 2.7)
 


Assumptions 

1. Gaussian distribution
2. Equal variances between groups
3. Independent observations          Departure from
                                     assumption!!!
Student's t­test of the 10 patients 15 measurements
using patients' average value


t = 1.91, df = 8, p­value = 0.09

Estimated treatment effect: 1.3 (­0.3 ­ 2.9) 



Assumptions 

1. Gaussian distribution
2. Equal variances between groups
3. Independent observations
Mixed model analysis of the 10 patients all 15 
measurements (assuming compound symmetry)


t = 1.92, df = 8, p­value = 0.09

Estimated treatment effect: 1.3 (­0.3 ­ 2.7) 



Assumptions 

1. Gaussian distribution
2. Equal variances between groups
3. Compound symmetry (Equal covariances between
   pairs of variables)
P­value summary

Student's t­test 

   of 1st measurements          p = 0.10
   of measurement averages      p = 0.09
   of dependent observations    p = 0.01

Mixed model analysis

  assuming compound symmetry    p = 0.09
Repeated measures data ­ two types of mixed models

μ       = intercept
b       = baseline covariate effect
pre     = baseline value
tk      = treatment effect at treatment k
mj      = time effect at jth visit
eij     = residual term for the ith patient at the jth visit



1. Covariance pattern models

      Yi = μ + b•pre + tk + mj + (tm)jk + eij


2. Random coefficients models

      Yi = μ + b•pre + tk + m•timeij + eij
A covariance pattern model
Yi = μ + b•pre + tk + mj + (tm)jk + eij
Covariance patterns for a trial with 4 time points

General              σ21  θ12 θ13 θ14
                     θ12 σ22  θ23 θ24
                     θ13 θ23 σ23   θ34
                     θ14 θ24 θ34 σ24

Compound symmetry    σ2   θ    θ      θ
                     θ    σ2   θ      θ
                     θ    θ    σ2     
                                      θ
                     θ    θ    θ      σ2

Toeplitz             σ2   θ1 θ2 θ3
                     θ1   σ2   θ1 θ2
                     θ2   θ1 σ2    θ1
                     θ3   θ2 θ1 σ2
2. Random coefficients models
  Yi = μ + b•pre + tk + m•timeij + eij
Mixed effect models
- continuous endpoints (linear models)

- count endpoints (Poisson models)

- binary endpoints (logistic models)

- survival endpoints (Cox models with frailty term)
Baseline   Follow up
Baseline   Visit 1   Visit 2   Visit 3
Revised

Censored




 Time
Mixed models can be analysed using
standard statistical packages
R
SAS
S-plus
SPSS*
STATA
Etc.



* linear models only

More Related Content

Viewers also liked

Meetup :: Update Elastic Stack 5.0
Meetup :: Update Elastic Stack 5.0Meetup :: Update Elastic Stack 5.0
Meetup :: Update Elastic Stack 5.0
Somkiat Puisungnoen
 
The State Design Pattern
The State Design PatternThe State Design Pattern
The State Design Pattern
Josh Candish
 
peta konsep sains
peta konsep sainspeta konsep sains
peta konsep sainsTiena1980
 
Software Architecture and Project Management module III : PATTERN OF ENTERPRISE
Software Architecture and Project Management module III : PATTERN OF ENTERPRISESoftware Architecture and Project Management module III : PATTERN OF ENTERPRISE
Software Architecture and Project Management module III : PATTERN OF ENTERPRISEsreeja_rajesh
 
Design pattern with Java 8
Design pattern with Java 8Design pattern with Java 8
Design pattern with Java 8
Somkiat Puisungnoen
 
Project Planning in Software Engineering
Project Planning in Software EngineeringProject Planning in Software Engineering
Project Planning in Software Engineering
Fáber D. Giraldo
 

Viewers also liked (6)

Meetup :: Update Elastic Stack 5.0
Meetup :: Update Elastic Stack 5.0Meetup :: Update Elastic Stack 5.0
Meetup :: Update Elastic Stack 5.0
 
The State Design Pattern
The State Design PatternThe State Design Pattern
The State Design Pattern
 
peta konsep sains
peta konsep sainspeta konsep sains
peta konsep sains
 
Software Architecture and Project Management module III : PATTERN OF ENTERPRISE
Software Architecture and Project Management module III : PATTERN OF ENTERPRISESoftware Architecture and Project Management module III : PATTERN OF ENTERPRISE
Software Architecture and Project Management module III : PATTERN OF ENTERPRISE
 
Design pattern with Java 8
Design pattern with Java 8Design pattern with Java 8
Design pattern with Java 8
 
Project Planning in Software Engineering
Project Planning in Software EngineeringProject Planning in Software Engineering
Project Planning in Software Engineering
 

Similar to Norsminde 2009

2008 JSM - Meta Study Data vs Patient Data
2008 JSM - Meta Study Data vs Patient Data2008 JSM - Meta Study Data vs Patient Data
2008 JSM - Meta Study Data vs Patient Data
Terry Liao
 
ANOVA Lec 1 (alternate).pptx
ANOVA Lec 1 (alternate).pptxANOVA Lec 1 (alternate).pptx
ANOVA Lec 1 (alternate).pptx
MohsinIqbalQazi
 
Fufal bhavin
Fufal bhavinFufal bhavin
Fufal bhavin
fufal bhavin
 
Chapter 11Survival AnalysisLearning Objectives.docx
Chapter 11Survival AnalysisLearning Objectives.docxChapter 11Survival AnalysisLearning Objectives.docx
Chapter 11Survival AnalysisLearning Objectives.docx
keturahhazelhurst
 
t-test and one way ANOVA.ppt game.ppt
t-test and one way ANOVA.ppt game.pptt-test and one way ANOVA.ppt game.ppt
t-test and one way ANOVA.ppt game.ppt
MohammedAbdela7
 
Sequential Monte Carlo algorithms for agent-based models of disease transmission
Sequential Monte Carlo algorithms for agent-based models of disease transmissionSequential Monte Carlo algorithms for agent-based models of disease transmission
Sequential Monte Carlo algorithms for agent-based models of disease transmission
JeremyHeng10
 
JM and JMbayes @ JSM2015
JM and JMbayes @ JSM2015JM and JMbayes @ JSM2015
JM and JMbayes @ JSM2015
Dimitris Rizopoulos
 
Linear Modeling Survival Analysis Statistics Assignment Help
Linear Modeling Survival Analysis Statistics Assignment HelpLinear Modeling Survival Analysis Statistics Assignment Help
Linear Modeling Survival Analysis Statistics Assignment Help
Statistics Assignment Experts
 
Tryptone task
Tryptone taskTryptone task
Tryptone task
Yuwu Chen
 
factorial design.pptx
factorial design.pptxfactorial design.pptx
factorial design.pptx
SreeLatha98
 
95720357 a-design-of-experiments
95720357 a-design-of-experiments95720357 a-design-of-experiments
95720357 a-design-of-experiments
Sathish Kumar
 
Toward an Ethical Experiment
Toward an Ethical ExperimentToward an Ethical Experiment
Toward an Ethical Experiment
Yusuke Narita
 
Two dependent samples (matched pairs)
Two dependent samples (matched pairs) Two dependent samples (matched pairs)
Two dependent samples (matched pairs)
Long Beach City College
 
Neha agarwal iv 18.11.16
Neha agarwal iv 18.11.16Neha agarwal iv 18.11.16
Neha agarwal iv 18.11.16
neha_ag
 
Statistical analysis by iswar
Statistical analysis by iswarStatistical analysis by iswar
⭐⭐⭐⭐⭐ Finding a Dynamical Model of a Social Norm Physical Activity Intervention
⭐⭐⭐⭐⭐ Finding a Dynamical Model of a Social Norm Physical Activity Intervention⭐⭐⭐⭐⭐ Finding a Dynamical Model of a Social Norm Physical Activity Intervention
⭐⭐⭐⭐⭐ Finding a Dynamical Model of a Social Norm Physical Activity Intervention
Victor Asanza
 
Test of significance
Test of significanceTest of significance
Test of significance
Dr. Imran Zaheer
 
Survival analysis
Survival analysisSurvival analysis
Survival analysis
IbraahimAli3
 
mHealth Israel_Connecting time-dots for Outcomes Prediction in Healthcare Big...
mHealth Israel_Connecting time-dots for Outcomes Prediction in Healthcare Big...mHealth Israel_Connecting time-dots for Outcomes Prediction in Healthcare Big...
mHealth Israel_Connecting time-dots for Outcomes Prediction in Healthcare Big...
Levi Shapiro
 
Dynamic survival models for predicting the future in health technology assess...
Dynamic survival models for predicting the future in health technology assess...Dynamic survival models for predicting the future in health technology assess...
Dynamic survival models for predicting the future in health technology assess...
cheweb1
 

Similar to Norsminde 2009 (20)

2008 JSM - Meta Study Data vs Patient Data
2008 JSM - Meta Study Data vs Patient Data2008 JSM - Meta Study Data vs Patient Data
2008 JSM - Meta Study Data vs Patient Data
 
ANOVA Lec 1 (alternate).pptx
ANOVA Lec 1 (alternate).pptxANOVA Lec 1 (alternate).pptx
ANOVA Lec 1 (alternate).pptx
 
Fufal bhavin
Fufal bhavinFufal bhavin
Fufal bhavin
 
Chapter 11Survival AnalysisLearning Objectives.docx
Chapter 11Survival AnalysisLearning Objectives.docxChapter 11Survival AnalysisLearning Objectives.docx
Chapter 11Survival AnalysisLearning Objectives.docx
 
t-test and one way ANOVA.ppt game.ppt
t-test and one way ANOVA.ppt game.pptt-test and one way ANOVA.ppt game.ppt
t-test and one way ANOVA.ppt game.ppt
 
Sequential Monte Carlo algorithms for agent-based models of disease transmission
Sequential Monte Carlo algorithms for agent-based models of disease transmissionSequential Monte Carlo algorithms for agent-based models of disease transmission
Sequential Monte Carlo algorithms for agent-based models of disease transmission
 
JM and JMbayes @ JSM2015
JM and JMbayes @ JSM2015JM and JMbayes @ JSM2015
JM and JMbayes @ JSM2015
 
Linear Modeling Survival Analysis Statistics Assignment Help
Linear Modeling Survival Analysis Statistics Assignment HelpLinear Modeling Survival Analysis Statistics Assignment Help
Linear Modeling Survival Analysis Statistics Assignment Help
 
Tryptone task
Tryptone taskTryptone task
Tryptone task
 
factorial design.pptx
factorial design.pptxfactorial design.pptx
factorial design.pptx
 
95720357 a-design-of-experiments
95720357 a-design-of-experiments95720357 a-design-of-experiments
95720357 a-design-of-experiments
 
Toward an Ethical Experiment
Toward an Ethical ExperimentToward an Ethical Experiment
Toward an Ethical Experiment
 
Two dependent samples (matched pairs)
Two dependent samples (matched pairs) Two dependent samples (matched pairs)
Two dependent samples (matched pairs)
 
Neha agarwal iv 18.11.16
Neha agarwal iv 18.11.16Neha agarwal iv 18.11.16
Neha agarwal iv 18.11.16
 
Statistical analysis by iswar
Statistical analysis by iswarStatistical analysis by iswar
Statistical analysis by iswar
 
⭐⭐⭐⭐⭐ Finding a Dynamical Model of a Social Norm Physical Activity Intervention
⭐⭐⭐⭐⭐ Finding a Dynamical Model of a Social Norm Physical Activity Intervention⭐⭐⭐⭐⭐ Finding a Dynamical Model of a Social Norm Physical Activity Intervention
⭐⭐⭐⭐⭐ Finding a Dynamical Model of a Social Norm Physical Activity Intervention
 
Test of significance
Test of significanceTest of significance
Test of significance
 
Survival analysis
Survival analysisSurvival analysis
Survival analysis
 
mHealth Israel_Connecting time-dots for Outcomes Prediction in Healthcare Big...
mHealth Israel_Connecting time-dots for Outcomes Prediction in Healthcare Big...mHealth Israel_Connecting time-dots for Outcomes Prediction in Healthcare Big...
mHealth Israel_Connecting time-dots for Outcomes Prediction in Healthcare Big...
 
Dynamic survival models for predicting the future in health technology assess...
Dynamic survival models for predicting the future in health technology assess...Dynamic survival models for predicting the future in health technology assess...
Dynamic survival models for predicting the future in health technology assess...
 

More from Jonas Ranstam PhD

The SPSS-effect on medical research
The SPSS-effect on medical researchThe SPSS-effect on medical research
The SPSS-effect on medical research
Jonas Ranstam PhD
 

More from Jonas Ranstam PhD (20)

The SPSS-effect on medical research
The SPSS-effect on medical researchThe SPSS-effect on medical research
The SPSS-effect on medical research
 
Sof stat issues_pro
Sof stat issues_proSof stat issues_pro
Sof stat issues_pro
 
Sof klin forsk_stat
Sof klin forsk_statSof klin forsk_stat
Sof klin forsk_stat
 
Rcsyd pres nara
Rcsyd pres naraRcsyd pres nara
Rcsyd pres nara
 
Prague 2008
Prague 2008Prague 2008
Prague 2008
 
Odense 2010
Odense 2010Odense 2010
Odense 2010
 
Oarsi jr1
Oarsi jr1Oarsi jr1
Oarsi jr1
 
Oac guidelines
Oac guidelinesOac guidelines
Oac guidelines
 
Oac beijing jr
Oac beijing jrOac beijing jr
Oac beijing jr
 
Nara guidelines-jr
Nara guidelines-jrNara guidelines-jr
Nara guidelines-jr
 
Malmo 30 03-2012
Malmo 30 03-2012Malmo 30 03-2012
Malmo 30 03-2012
 
Lund 2010
Lund 2010Lund 2010
Lund 2010
 
Lund 2009
Lund 2009Lund 2009
Lund 2009
 
London 2008
London 2008London 2008
London 2008
 
Lecture jr
Lecture jrLecture jr
Lecture jr
 
Karlskrona 2009
Karlskrona 2009Karlskrona 2009
Karlskrona 2009
 
Datavalidering jr1
Datavalidering jr1Datavalidering jr1
Datavalidering jr1
 
Copenhagen 2008
Copenhagen 2008Copenhagen 2008
Copenhagen 2008
 
Brussels 2010
Brussels 2010Brussels 2010
Brussels 2010
 
Amsterdam 2008
Amsterdam 2008Amsterdam 2008
Amsterdam 2008
 

Norsminde 2009