Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "Simple Repeated measures Peter T. Donnan Professor of Epidemiology and Biostatistics Statistics for Health Research."— Presentation transcript:

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

2 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

3 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

4 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

5 Significance testing at all time points Probably most common – multiple t-tests Probably most common – multiple t-tests Least valid! Least valid! 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 Assumes that aim of study is to show significant difference at every time point 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

6 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

7 Organisation of data (1) Generally each unit in one row and repeated measures in separate columns Unit Score 1Score2Score3 1 2.8 3.1 4.1 2 5.6 5.7 5.1 3 4.3 4.1 5.4 ….

8 Organisation of data (2) Note most other programs and later analyses require ONE row per measurement UnitScoreTime 12.81 13.12 14.13 25.61 25.72 25.13 34.31 Etc…….

9 BasalInsulinPalmitateInsul+PalmCell type Exper. 12.4119.37 5.00 9.8811 14.9515.8410.08 8.9911 14.2019.04 9.6311.2811 11.9616.7813.1612.4612..…..……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

10 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

11

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

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

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

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

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

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

18 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

19 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

20 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 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

21 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

22 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

23 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

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

25 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?

26 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)

27 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


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

Similar presentations


Ads by Google