Simple Repeated measures Peter T. Donnan Professor of Epidemiology and Biostatistics Statistics for Health Research.

Slides:



Advertisements
Similar presentations
Independent t -test Features: One Independent Variable Two Groups, or Levels of the Independent Variable Independent Samples (Between-Groups): the two.
Advertisements

Analysis of variance (ANOVA)-the General Linear Model (GLM)
Simple Repeated measures Peter T. Donnan Professor of Epidemiology and Biostatistics Statistics for Health Research.
1 G Lect 14b G Lecture 14b Within subjects contrasts Types of Within-subject contrasts Individual vs pooled contrasts Example Between subject.
SPSS Series 3: Repeated Measures ANOVA and MANOVA
T-Tests.
t-Tests Overview of t-Tests How a t-Test Works How a t-Test Works Single-Sample t Single-Sample t Independent Samples t Independent Samples t Paired.
© 2010 Pearson Prentice Hall. All rights reserved The Complete Randomized Block Design.
T-Tests.
Analysis of variance (ANOVA)-the General Linear Model (GLM)
January 7, afternoon session 1 Multi-factor ANOVA and Multiple Regression January 5-9, 2008 Beth Ayers.
MSc Applied Psychology PYM403 Research Methods Quantitative Methods I.
C82MST Statistical Methods 2 - Lecture 7 1 Overview of Lecture Advantages and disadvantages of within subjects designs One-way within subjects ANOVA Two-way.
ANCOVA Psy 420 Andrew Ainsworth. What is ANCOVA?
Intro to Statistics for the Behavioral Sciences PSYC 1900 Lecture 10: Hypothesis Tests for Two Means: Related & Independent Samples.
Go to Table of ContentTable of Content Analysis of Variance: Randomized Blocks Farrokh Alemi Ph.D. Kashif Haqqi M.D.
Repeated Measures ANOVA Used when the research design contains one factor on which participants are measured more than twice (dependent, or within- groups.
Assessing Survival: Cox Proportional Hazards Model Peter T. Donnan Professor of Epidemiology and Biostatistics Statistics for Health Research.
6.1 - One Sample One Sample  Mean μ, Variance σ 2, Proportion π Two Samples Two Samples  Means, Variances, Proportions μ 1 vs. μ 2.
Professor of Epidemiology and Biostatistics
Repeated measures: Approaches to Analysis Peter T. Donnan Professor of Epidemiology and Biostatistics.
ANCOVA Lecture 9 Andrew Ainsworth. What is ANCOVA?
Inferential Statistics: SPSS
Chapter 13: Inference in Regression
Assessing the Evidence: Statistical Inference Peter T. Donnan Professor of Epidemiology and Biostatistics Statistics for Health Research.
LEARNING PROGRAMME Hypothesis testing Intermediate Training in Quantitative Analysis Bangkok November 2007.
ANOVA Analysis of Variance.  Basics of parametric statistics  ANOVA – Analysis of Variance  T-Test and ANOVA in SPSS  Lunch  T-test in SPSS  ANOVA.
Lab 2: repeated measures ANOVA 1. Inferior parietal involvement in long term memory There is a hypothesis that different brain regions are recruited during.
Education 793 Class Notes T-tests 29 October 2003.
Hypothesis tests III. Statistical errors, one-and two sided tests. One-way analysis of variance. 1.
Assessing Survival: Cox Proportional Hazards Model
January 31 and February 3,  Some formulae are presented in this lecture to provide the general mathematical background to the topic or to demonstrate.
TAUCHI – Tampere Unit for Computer-Human Interaction ERIT 2015: Data analysis and interpretation (1 & 2) Hanna Venesvirta Tampere Unit for Computer-Human.
B AD 6243: Applied Univariate Statistics Repeated Measures ANOVA Professor Laku Chidambaram Price College of Business University of Oklahoma.
Practical Missing Data Analysis in SPSS (v17 onwards) Peter T. Donnan Professor of Epidemiology and Biostatistics.
Analysis of variance Petter Mostad Comparing more than two groups Up to now we have studied situations with –One observation per object One.
ANOVA (Analysis of Variance) by Aziza Munir
Psychology 301 Chapters & Differences Between Two Means Introduction to Analysis of Variance Multiple Comparisons.
Repeated Measurements Analysis. Repeated Measures Analysis of Variance Situations in which biologists would make repeated measurements on same individual.
Hypothesis testing Intermediate Food Security Analysis Training Rome, July 2010.
CHAPTER 11 SECTION 2 Inference for Relationships.
Statistical Inference for more than two groups Peter T. Donnan Professor of Epidemiology and Biostatistics Statistics for Health Research.
Analysis of Variance 1 Dr. Mohammed Alahmed Ph.D. in BioStatistics (011)
Social Science Research Design and Statistics, 2/e Alfred P. Rovai, Jason D. Baker, and Michael K. Ponton Within Subjects Analysis of Variance PowerPoint.
Repeated-measures ANOVA When subjects are tested on two or more occasions “Repeated measures” or “Within subjects” design Repeated Measures ANOVA But,
Independent t-Test CJ 526 Statistical Analysis in Criminal Justice.
Analysis of Variance (ANOVA) Brian Healy, PhD BIO203.
ANOVA: Analysis of Variance.
Adjusted from slides attributed to Andrew Ainsworth
Smoking Data The investigation was based on examining the effectiveness of smoking cessation programs among heavy smokers who are also recovering alcoholics.
Randomized block designs  Environmental sampling and analysis (Quinn & Keough, 2002)
Stats Lunch: Day 8 Repeated-Measures ANOVA and Analyzing Trends (It’s Hot)
ONE-WAY BETWEEN-GROUPS ANOVA Psyc 301-SPSS Spring 2014.
Correlated-Samples ANOVA The Univariate Approach.
DTC Quantitative Methods Bivariate Analysis: t-tests and Analysis of Variance (ANOVA) Thursday 14 th February 2013.
Handout Twelve: Design & Analysis of Covariance
Analysis of Variance STAT E-150 Statistical Methods.
Handout Ten: Mixed Design Analysis of Variance EPSE 592 Experimental Designs and Analysis in Educational Research Instructor: Dr. Amery Wu Handout Ten:
ANOVA Overview of Major Designs. Between or Within Subjects Between-subjects (completely randomized) designs –Subjects are nested within treatment conditions.
Analysis of variance Tron Anders Moger
HYPOTHESIS TESTING FOR DIFFERENCES BETWEEN MEANS AND BETWEEN PROPORTIONS.
ANalysis Of VAriance (ANOVA) Used for continuous outcomes with a nominal exposure with three or more categories (groups) Result of test is F statistic.
Slide Slide 1 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley. Lecture Slides Elementary Statistics Tenth Edition and the.
Educational Research Inferential Statistics Chapter th Chapter 12- 8th Gay and Airasian.
Repeated measures: Approaches to Analysis
Statistical Inference for more than two groups
Chapter 12: Comparing Independent Means
I. Statistical Tests: Why do we use them? What do they involve?
Exercise 1 Use Transform  Compute variable to calculate weight lost by each person Calculate the overall mean weight lost Calculate the means and standard.
BUS-221 Quantitative Methods
Presentation transcript:

Simple Repeated measures Peter T. Donnan Professor of Epidemiology and Biostatistics Statistics for Health Research

Objectives of session Understand what is meant by repeated measures Understand what is meant by repeated measures Be able to set out data in required format Be able to set out data in required format Carry out simple analyses in SPSS Carry out simple analyses in SPSS Interpret the output Interpret the output

Repeated Measures Repeated Measures arise when: Measuring the same experimental unit (cell, rat, patient) on a number of occasions Measuring the same experimental unit (cell, rat, patient) on a number of occasions Standard analysis of variance not valid as assumes independent measures Standard analysis of variance not valid as assumes independent measures Essentially measurements are paired or correlated Essentially measurements are paired or correlated

Examples of Repeated Measures Measuring glucose uptake by cells at different time points, under different stimuli, etc. Measuring glucose uptake by cells at different time points, under different stimuli, etc. Measuring cholesterol in a randomised controlled trial of a new statin at 3, 6 and 12 months Measuring cholesterol in a randomised controlled trial of a new statin at 3, 6 and 12 months Implementing weight loss intervention and measuring weight at different time points Implementing weight loss intervention and measuring weight at different time points

Analysis of Repeated Measures T-test at each time point very common – multiple t-tests T-test at each time point very common – multiple t-tests Least valid analysis! Least valid analysis! Primary hypothesis is usually a single test of overall effect Primary hypothesis is usually a single test of overall effect By testing at each time point we are increasing the type I error By testing at each time point we are increasing the type I error P=0.05 means that we would reject the null hypothesis incorrectly on 1 in 20 occasions P=0.05 means that we would reject the null hypothesis incorrectly on 1 in 20 occasions If we keep testing we will eventually find a significant result! If we keep testing we will eventually find a significant result!

Repeated Measures Could perform t-test at each time point

Analysis of Repeated Measures Sometimes account for multiple testing by adjusting p-value i.e. 0.05/k with k tests Sometimes account for multiple testing by adjusting p-value i.e. 0.05/k with k tests Known as the Bonferoni correction Known as the Bonferoni correction Multiple tests assumes that aim of study is to show significant difference at every time point Multiple tests assumes that aim of study is to show significant difference at every time point Most studies aim to show OVERALL difference between treatments and /or reaching therapeutic target quicker Most studies aim to show OVERALL difference between treatments and /or reaching therapeutic target quicker PRIMARY HYPOTHESIS IS GLOBAL PRIMARY HYPOTHESIS IS GLOBAL

Simple general approach Basically just an extension of analysis of variance (ANOVA) Basically just an extension of analysis of variance (ANOVA) Pairing or matching of measurements on same unit needs to be taken into account Pairing or matching of measurements on same unit needs to be taken into account Method is General Linear Model for continuous measures and adjusts tests for correlation Method is General Linear Model for continuous measures and adjusts tests for correlation

Organisation of data (1) Generally each unit in one row and repeated measures in separate columns Unit Score 1Score2Score ….

Organisation of data (2) Note most other programs and later analyses require ONE row per measurement UnitScoreTime Etc…….

BasalInsulinPalmitateInsul+PalmCell type Exper …..……12 Glucose uptake of two cell types (liver and muscle). Each cell challenged with four different ‘treatments’ Data given in ‘Glucose uptake.sav’ Note: cell type is a fixed BETWEEN CELL factor ‘Treatments’ are REPEATED WITHIN CELL factors

Repeated Measures in SPSS Simplest method in SPSS is: Simplest method in SPSS is: General Linear Model General Linear Model Repeated Measures Note many other methods in SPSS – Mixed Models described on day 4 Note many other methods in SPSS – Mixed Models described on day 4

Repeated Measures in SPSS: Set factor and number of levels Within subject factor Within subject factor levels Within subject factor name

Repeated Measures in SPSS: Enter columns of repeated measures Use arrow to enter each repeated measure column Between subject factor column

Repeated Measures in SPSS: Select options Use arrow to select display of means and Bonferroni corrected comparisons Select other options

Select a plot of means of each within subject treatment Repeated Measures in SPSS: Select options

Repeated Measures in SPSS: Output - Mean glucose uptake Means for four treatments and 95% CI 1 = Basal; 2 = Insulin; 3 = Palmitate; 4 = Insulin+Palmitate

Basal Insulin Palmitate Insulin+Palmitate Repeated Measures in SPSS: Output – Plot of Mean glucose uptake

Repeated Measures in SPSS: Output – Comparisons of Mean glucose uptake Comparison of means with Bonferroni correction 1 = Basal; 2 = Insulin; 3 = Palmitate; 4 = Insulin+Palmitate

Repeated Measures: Conclusion Energy intake significantly higher with insulin compared to all other treatments Energy intake significantly higher with insulin compared to all other treatments Addition of palmitate removes this effect Addition of palmitate removes this effect

Mauchley’s Sphericity test Sphericity refers to the issue Sphericity refers to the issue of the similarity (homogeneity) of variances in the differences between treatments Think of it as an extension to assumption in ANOVA of similar variances It is an assumption of SPSS Repeated Measures i.e. It is an assumption of SPSS Repeated Measures i.e. s 2 a-b ~ s 2 a-c ~ s 2 a-d ~ s 2 b-c ~ s 2 b-d ~ s 2 c-d

Meeting conditions of repeated measures: Mauchly Sphericity Test P-value for test of Sphericity Significant so need to correct F test by multiplying degrees of freedom by Greenhouse-Geisser epsilon

Meeting conditions of repeated measures: Use corrected p-value if significant non-sphericity Output gives four different tests Overall test of differences between treatments within subjects: Use Greenhouse-Geisser corrected p-value

Alternatives When Sphericity is not met an alternative to the correction factors is to use MANOVA When Sphericity is not met an alternative to the correction factors is to use MANOVA Unfortunately this has less power than the Repeated Measures analysis demonstrated and so should generally be avoided Unfortunately this has less power than the Repeated Measures analysis demonstrated and so should generally be avoided

Repeated Measures in SPSS: Output – Pedometer Trial Output – Pedometer Trial Randomised controlled trial in sedentary elderly women Randomised controlled trial in sedentary elderly women Three groups Pedometer+advice, Advice only, Control Three groups Pedometer+advice, Advice only, Control Physical activity measured on three occasions Physical activity measured on three occasions 1 – baseline; 1 – baseline; mnths; mnths; 3 – 9 mnths 3 – 9 mnths

Repeated Measures in SPSS: Output – Pedometer Trial 0 = Control; 1 = Pedometer+advice Factor 1 – time baseline, 3 mnths, 9 mnths Pedometer Group * factor1 Measure: Physical Activity Pedometer factor1 Mean Std. Error 95%CI group Lower Upper a a a a. Based on modified population marginal mean. Pedometer Group * factor1 Measure: Physical Activity Pedometer factor1 Mean Std. Error 95%CI group Lower Upper a a a a. Based on modified population marginal mean.

Repeated Measures in SPSS: Output – Plot of Mean Activity over time

Repeated Measures in SPSS: Output – Tests of significance Not quite significant!

Repeated Measures: Conclusion Activity increased with pedometer + advice but rise was greatest in Advice only group Activity increased with pedometer + advice but rise was greatest in Advice only group

Repeated Measures: Conclusion Simple repeated measures is useful analysis for overall effect Simple repeated measures is useful analysis for overall effect Avoid multiple testing at each time point Avoid multiple testing at each time point Check assumption of Sphericity Check assumption of Sphericity Use adjusted Greenhouse-Geisser or Huynh-Feldt adjustment if sphericity not met Use adjusted Greenhouse-Geisser or Huynh-Feldt adjustment if sphericity not met Later demonstrate mixed model Later demonstrate mixed model

References Field A. A bluffers guide to …Sphericity. J Educational Statistics 13(3): Pallant J. SPSS Survival Manual 3 rd ed, Open University Press, Field A. Discovering Statistics using SPSS for Windows. Sage publications, London, Foster JJ. Data Analysis using SPSS for Windows (Versions 8 – 10). Sage publications, London, Puri BK. SPSS in practice. An illustrated guide. Arnold, London, 2002.

Repeated Measures: Practical in SPSS Previous analysis lumped all cells together Previous analysis lumped all cells together Two types: liver and muscle Two types: liver and muscle 1) Repeat the analysis separately for each cell type 1) Repeat the analysis separately for each cell type 2) Then compare results from two types in single analysis 2) Then compare results from two types in single analysis Is cell type within subject or between subject factor? Is cell type within subject or between subject factor?

Repeated Measures: Practical in SPSS Hint - To do separate analysis by cell type use: Hint - To do separate analysis by cell type use: Data Data Select Cases Select Cases (If celltype = 1 or 2) OR Data Data Split file (compare groups by celltype)

Repeated Measures: Practical in SPSS SPSS Study database.sav Trial of pedometers in elderly sedentary women Trial of pedometers in elderly sedentary women Try repeated measures of Accelerometer trial data Try repeated measures of Accelerometer trial data Baseline, 3 months and 9 months Baseline, 3 months and 9 months AccelVM1a, AccelVM2, AccelVM3 AccelVM1a, AccelVM2, AccelVM3 Trial arms Ran_grp (1,2,3) Trial arms Ran_grp (1,2,3) Try adjusting for Age, StairsDifficult, SIMD Try adjusting for Age, StairsDifficult, SIMD