© Springer International Publishing Switzerland 2016
Ton J. Cleophas and Aeilko H. ZwindermanSPSS for Starters and 2nd Levelers10.1007/978-3-319-20600-4_12

12. Repeated Measures Mixed-Modeling (20 Patients)

Ton J. Cleophas1, 2  and Aeilko H. Zwinderman2, 3
(1)
Department Medicine, Albert Schweitzer Hospital, Dordrecht, The Netherlands
(2)
European College Pharmaceutical Medicine, Lyon, France
(3)
Department Biostatistics, Academic Medical Center, Amsterdam, The Netherlands
 

1 General Purpose

Mixed models uses repeated outcome measures as well as a predictor variable, often a binary treatment modality. If the main purpose of your research is to demonstrate a significant difference between two treatment modalities rather than between the differences in repeated measures, then mixed models should be used instead of repeated measures analysis of variance (ANOVA). The explanation requires advanced statistics and is given in the next paragraph. It could be skipped by the nonmathematiciens.
With mixed models repeated-measures-within-subjects receive fewer degrees of freedom than they do with the classical general linear model (Chaps. 9, 10 and 11), because they are nested in a separate layer or subspace. In this way better sensitivity is left in the model to demonstrate differences between subjects. Therefore, if the main aim of your research is to demonstrate differences between subjects, then the mixed model should be more sensitive than the classical general linear models as explained in the previous three chapters. However, the two methods should be equivalent, if the main aim of your research is to demonstrate differences between repeated measures, for example different treatment modalities in a single subject. A limitation of the mixed model is, that it includes additional variances, and is, therefore, more complex. More complex statistical models are, ipso facto, more at risk of power loss, particularly, with small data (Statistics applied to clinical studies 5th edition, Chap. 55, Springer Heidelberg Germany 2012, from the same authors). Another limitation is, that the data have to be restructured in order to qualify for the mixed linear analysis.

2 Schematic Overview of Type of Data File

A211753_2_En_12_Figa_HTML.gif
A211753_2_En_12_Figb_HTML.gif

3 Primary Scientific Question

Is there a significant effect of the predictor after adjustment for the repeated measures.

4 Data Example

Twenty patients are treated with two treatment modalities for cholesterol and levels are measured after 1–5 weeks, once a week. We wish to know whether one treatment modality is significantly better than the other after adjustment for the repeated nature of the outcome variables
A211753_2_En_12_Figc_HTML.gif
The entire data file is in “chapter12repeatedmeasuresmixedmodel”, and is in extras.springer.com. We will start by opening the data file in SPSS.

5 Analysis with the Restructure Data Wizard

Command:
click Data....click Restructure....mark Restructure selected variables into cases.... click Next....mark One (for example, w1, w2, and w3)....click Next....Name: id (the patient id variable is already provided)....Target Variable: enter "firstweek, secondweek...... fifthweek"....Fixed Variable(s): enter treatment....click Next.... How many index variables do you want to create?....mark One....click Next....click Next again....click Next again....click Finish....Sets from the original data will still be in use…click OK.
Return to the main screen, and observe that there are now 100 rows instead of 20 in the data file. The first 10 rows are given underneath.
Patient id
treatment
Index1
Trans1
1
0,00
1
1,66
1
0,00
2
1,62
1
0,00
3
1,57
1
0,00
4
1,52
1
0,00
5
1,50
2
0,00
1
1,69
2
0,00
2
1,71
2
0,00
3
1,60
2
0,00
4
1,55
2
0,00
5
1,56
treatment = treatment modality
Index1 = week of treatment (1–5)
Trans1 = outcome values
The above table is adequate to perform a mixed linear model analysis. For readers’ convenience it is saved in extras.springer.com, and is entitled “chapter12repeatedmeasuresmixedmodels2”. SPSS calls the levels “indexes”, and the outcome values after restructuring “Trans” values, terms pretty confusing to us.

6 Mixed Model Analysis

The above table is adequate to perform a multilevel modeling analysis with mixed linear model, and adjusts for the positive correlation between the presumably positive correlation between the weekly measurements in one patient. The module Mixed Models consists of two statistical models:
  • Linear,
  • Generalized Linear.
For analysis the statistical model Linear is required.
Command:
  • Analyze….Mixed Models….Linear….Specify Subjects and Repeated….Subject: enter id ….Continue….Linear Mixed Model….Dependent Variables: Trans1….Factors: Index1, treatment….Fixed….Build Nested Term….Treatment ….Add….Index1….Add…. Index1 build term by* treatment….Index1 *treatment….Add….Continue….click OK (* = sign of multiplication).
The underneath table shows the result. SPSS has applied the effects of the cluster levels and the interaction between cluster levels and treatment modality for adjusting the effects of the correlation levels between the weekly repeated measurements. The adjusted analysis shows that one treatment performs much better than the other.
Type III tests of fixed effectsa
Source
Numerator df
Denominator df
F
Sig.
Intercept
1
90
6988,626
,000
treatment
1
90
20,030
,000
Index1
4
90
,377
,825
Index1 * treatment
4
90
1,603
,181
aDependent variable: outcome
Sometimes better statistics can be obtained by random effects models. The module Generalized Linear Mixed Models can be used for the purpose.

7 Mixed Model Analysis with Random Interaction

For a mixed model with random effects the Generalized Mixed Linear Model in the module Mixed Models is required.
Command:
  • Analyze….Mixed Linear….Generalized Mixed Linear Models….click Data Structure….click left mouse and drag patient_id to Subjects part of the canvas ….click left mouse and drag week to Repeated Measures part of the canvas….click Fields and Effects….click Target….check that the variable outcome is already in the Target window….check that Linear model is marked….click Fixed Effects….drag treatment and week to Effect builder….click Random Effects….click Add Block ….click Add a custom term….move week*treatment (* is symbol multiplication and interaction) to the Custom term window….click Add term….click OK….click Run.
A211753_2_En_12_Figd_HTML.gif
A211753_2_En_12_Tab3_HTML.gif
Probability distribution:Normal
Link function:Identity
In the output sheet a graph is observed with the mean and standard errors of the outcome value displayed with the best fit Gaussian curve. The F-value of 23,722 indicates that one treatment is very significantly better than the other with p <0,0001. The thickness of the lines are a measure for level of significance, and so the significance of the 5 week is very thin and thus very weak. Week 5 is not shown. It is redundant, because it means absence of the other 4 weeks. If you click at the left bottom of the graph panel, a table comes up providing similar information in written form. The effect of the interaction variable is not shown, but implied in the analysis.
The F-value of this random effect model is slightly better than the F-value of the fixed effect mixed model (F = 20,030).

8 Conclusion

You might want to analyze the above data example in different ways. The averages of the five repeated measures in one patient can be calculated and an unpaired t-test may be used to compare these averages in the two treatment groups (like in Chap. 6). The overall average in group 0 was 1,925 (SEM 0,0025), in group 1 2,227 (SE 0,227). With 18 degrees of freedom and a t-value of 1,99 the difference did not obtain statistical significance, 0,05 < p < 0,10. There seems to be, expectedly, a strong positive correlation between the five repeated measurements in one patient. In order to take account of this strong positive correlation a mixed linear model is used. This model showed that treatment 1 now performed significantly better than did treatment 0, at p = 0,0001.
You might want to analyze the above data file also using a repeated measures ANOVA (like in Chap. 10). However, repeated-measures ANOVA will produce treatment modality effect with a p-value of only 0,048 instead of 0,0001. If you are more interested in the effect of the predictor variables, and less so in the difference between the repeated outcomes, then repeated-measures ANOVA is not an appropriate method for your purpose.

9 Note

More background, theoretical and mathematical information of restructuring data files is in the Chap.6, Mixed linear models, pp 65–77, in: Machine learning in medicine part one, Springer Heidelberg Germany, 2013, from the same authors, and the Chaps. 8 and 39 in the current volume.
SPSS for Starters and 2nd Levelers
ACoverHTML.html
A211753_2_En_BookFrontmatter_OnlinePDF.html
A211753_2_En_1_ChapterPart1.html
A211753_2_En_1_Chapter.html
A211753_2_En_2_Chapter.html
A211753_2_En_3_Chapter.html
A211753_2_En_4_Chapter.html
A211753_2_En_5_Chapter.html
A211753_2_En_6_Chapter.html
A211753_2_En_7_Chapter.html
A211753_2_En_8_Chapter.html
A211753_2_En_9_Chapter.html
A211753_2_En_10_Chapter.html
A211753_2_En_11_Chapter.html
A211753_2_En_12_Chapter.html
A211753_2_En_13_Chapter.html
A211753_2_En_14_Chapter.html
A211753_2_En_15_Chapter.html
A211753_2_En_16_Chapter.html
A211753_2_En_17_Chapter.html
A211753_2_En_18_Chapter.html
A211753_2_En_19_Chapter.html
A211753_2_En_20_Chapter.html
A211753_2_En_21_Chapter.html
A211753_2_En_22_Chapter.html
A211753_2_En_23_Chapter.html
A211753_2_En_24_Chapter.html
A211753_2_En_25_Chapter.html
A211753_2_En_26_Chapter.html
A211753_2_En_27_Chapter.html
A211753_2_En_28_Chapter.html
A211753_2_En_29_Chapter.html
A211753_2_En_30_Chapter.html
A211753_2_En_31_Chapter.html
A211753_2_En_32_Chapter.html
A211753_2_En_33_Chapter.html
A211753_2_En_34_ChapterPart2.html
A211753_2_En_34_Chapter.html
A211753_2_En_35_Chapter.html
A211753_2_En_36_Chapter.html
A211753_2_En_37_Chapter.html
A211753_2_En_38_Chapter.html
A211753_2_En_39_Chapter.html
A211753_2_En_40_Chapter.html
A211753_2_En_41_Chapter.html
A211753_2_En_42_Chapter.html
A211753_2_En_43_Chapter.html
A211753_2_En_44_Chapter.html
A211753_2_En_45_Chapter.html
A211753_2_En_46_Chapter.html
A211753_2_En_47_Chapter.html
A211753_2_En_48_Chapter.html
A211753_2_En_49_Chapter.html
A211753_2_En_50_Chapter.html
A211753_2_En_51_Chapter.html
A211753_2_En_52_Chapter.html
A211753_2_En_53_Chapter.html
A211753_2_En_54_Chapter.html
A211753_2_En_55_ChapterPart3.html
A211753_2_En_55_Chapter.html
A211753_2_En_56_Chapter.html
A211753_2_En_57_Chapter.html
A211753_2_En_58_Chapter.html
A211753_2_En_59_Chapter.html
A211753_2_En_60_Chapter.html
A211753_2_En_BookBackmatter_OnlinePDF.html