Repeated Measures Example
Consider the Cholesterol Stacked.jmp sample data table. A study was performed to test two new cholesterol drugs against a control drug. Twenty patients with high cholesterol were randomly assigned to each of four treatments (the two experimental drugs, the control, and a placebo). Each patient’s total cholesterol was measured at six times during the study: the first day in April, May, and June in the morning and afternoon. You are interested in whether either of the new drugs is effective at lowering cholesterol and in whether time and treatment interact.
Background
Covariance Structures
Covariance Structure: Unstructured. The Unstructured model fits all covariance parameters, J(J+1)/2 in total. In this example, the model fits 21 variances.
Covariance Structure: Residual. The Residual model is equivalent to the usual variance components structure. In this example, the model fits two variances.
Covariance Structure: Toeplitz. The Toeplitz model fits 2J-1 covariance parameters. In this example, the model fits 11 variances.
Covariance Structure: AR(1). This model fits two covariance parameters. One parameter determines the variance and the other determines how the covariance changes with time.
Data Structure
The Cholesterol.jmp data table is in a format that is typically used for recording repeated measures data. To use the Mixed Model personality to analyze these data, each cholesterol measurement needs to be in its own row, as in Cholesterol Stacked.jmp. To construct Cholesterol Stacked.jmp, the data in Cholesterol.jmp were stacked using Tables > Stack.
The Days column in the stacked table was constructed using a formula. The Days column gives the number days into the study when the cholesterol measurement was taken. Its modeling type is continuous. This is necessary because the AR(1) covariance structure requires the repeated effect be continuous.
1.
Select Help > Sample Data Library and open Cholesterol Stacked.jmp.
2.
Select Analyze > Fit Model.
3.
Select Keep dialog open so that you can return to the launch window in the next example.
4.
Select Y and click Y.
5.
Select Mixed Model from the Personality list.
6.
Select Treatment, Month, and AM/PM, and then select Macros > Full Factorial.
Fit Model Launch Window Showing Completed Fixed Effects Tab
7.
Select the Repeated Structure tab.
8.
Select Unstructured from the Structure list.
9.
Select Time and click Repeated. The Repeated column defines the repeated measures within a subject.
10.
Select Patient and click Subject.
Fit Model Launch Window Showing Completed Repeated Structure Tab
11.
Click Run.
The Fit Mixed report is shown in Fit Mixed Report - Unstructured Covariance Structure. Because you want to compare your three models using AICc or BIC, you are interested in the Fit Statistics report. The AICc for the unstructured model is 703.84.
Fit Mixed Report - Unstructured Covariance Structure
2.
On the Repeated Structure tab, select Residual from the Structure list.
4.
Select the Random Effects tab.
5.
Select Patient and click Add.
6.
Select Patient in the Random Effects area, select the Treatment column, and then click Nest.
Fit Model Launch Window Showing Completed Random Effects Tab
7.
Click Run.
The Fit Mixed report is shown in Fit Mixed Report - Residual Error Covariance Structure. The Fit Statistics report shows that the AICc for the Residual model is 832.55, as compared to 703.84 for the Unstructured model.
Fit Mixed Report - Residual Error Covariance Structure
Covariance Structure: Toeplitz
2.
If you are continuing from the previous example, select Patient[Treatment] on the Random Effects tab and then click Remove.
3.
Select the Repeated Structure tab.
4.
Select Toeplitz Unequal Variances from the Structure list.
5.
Select Time and click Repeated.
6.
Select Patient and click Subject.
Fit Model Launch Window Showing Completed Repeated Structure Tab
7.
Click Run.
Fit Mixed Report - Toeplitz Unequal Variances Structure
2.
If you are continuing from the previous example, select Time in the Repeated box and then click Remove.
3.
Select AR(1) from the Structure list.
4.
Select Days and click Repeated.
Fit Model Launch Window Showing Completed Repeated Structure Tab
5.
Click Run.
The Fit Mixed report is shown in Fit Mixed Report - AR(1) Covariance Structure. The Fit Statistics report shows that the AICc for the AR(1) model is 652.63. Compare this number to 832.55 for the Residual model, 703.84 for the Unstructured model, and 788.03 for the Toeplitz Unequal Variances model. Based on the AICc criterion, the AR(1) model is the best of the four models.
The Variogram plot shows the empirical semivariances and the curve for the AR(1) model. Since there are only five nonzero values for Days, only four distance classes are possible and only four points are shown. The AR(1) structure seems appropriate. To explore other structures, select options from the red triangle menu next to Variogram. For more information about Variogram options, see Variogram.
Fit Mixed Report - AR(1) Covariance Structure
1.
Click the red triangle next to Fit Mixed and select Marginal Model Inference > Profiler.
The Marginal Model Profiler report (Marginal Profiler Plot for Treatment A) enables you to see the effect on cholesterol levels (Y) for various settings of Treatment, Month, and AM/PM.
2.
In the plot for Month, drag the vertical dotted red line from April to May and then to June.
Notice that the predicted AM measurements for Y decrease over the three months from a mean of 277.4 in April to a mean of 177.7 in June.
3.
In the plot for Treatment, drag the vertical dotted red line from A to B.
By dragging the line in the plot for Month from April to June, you see that, for Treatment B, the predicted AM mean for Y decreases from 276.8 in April to 191.2 in June.
4.
In the plot for Treatment, drag the vertical dotted line to Control and then to Placebo.
Notice that when you set Treatment to Control or Placebo, you see virtually no change over the three months (Marginal Profiler Plot for Control).
5.
Set Treatment and Month to all twelve combinations of their levels by dragging the vertical red lines.
Marginal Profiler Plot for Treatment A
Marginal Profiler Plot for Control
2.
Under Types of Estimates, select User-Defined Estimates.
6.
Click Add Estimates.
7.
From the Choose Initial Comparisons list, select All Pairwise Comparisons - Tukey HSD.
Completed Multiple Comparisons Window
8.
Tukey HSD All Pairwise Comparisons Report for All Treatments for June PM
1.
Select Multiple Comparisons from the Fit Mixed red triangle menu.
2.
Select AM/PM from the Choose an Effect list.
3.
Select All Pairwise Comparisons - Tukey HSD from the Choose Initial Comparisons list.
4.
5.
Select Equivalence Tests from the Tukey HSD All Pairwise Comparisons red triangle menu.
6.
Type 3 in the box for Difference considered practically zero.
7.
Equivalent TOST Test and Equivalence Test Scatterplot for AM/PM Effect
Note: The equivalence test consists of two one-sided t tests for the null hypotheses that the true difference is either below -3 or above 3. If both tests reject, this indicates that the difference in the means falls between -3 and 3, and the groups are considered practically equivalent.
1.
After following step 1 to step 8.19 in Covariance Structure: Toeplitz, return to the Fit Model launch window.
3.
Select Treatment and Days then select Macros > Full Factorial.
Fit Model Launch Window Showing Fixed Effects Tab
4.
Click Run.
The Fit Mixed report is shown in Fit Mixed Report - AR(1) Covariance Structure with Continuous Fixed Effect. You see that the interaction of Treatment and Days is highly significant indicating different regressions for the drugs.
Fit Mixed Report - AR(1) Covariance Structure with Continuous Fixed Effect

Help created on 9/19/2017