This page examines a single-factor within-subjects (repeated measures) design using summary statistics input, adding color and plausibility curves to plots of comparisons and contrasts.
Data Management
This code inputs the variable summaries and creates a summary table.
Outcome1 <- c(N = 10, M = 8.000, SD = 1.414)
Outcome2 <- c(N = 10, M = 11.000, SD = 2.211)
Outcome3 <- c(N = 10, M = 12.000, SD = 2.449)
RepeatedMoments <- construct(Outcome1, Outcome2, Outcome3, class = "wsm")
This code creates a correlation matrix.
Analyses of the Means
As shown elsewhere, the standard EASI plot includes just the confidence intervals for means plus their values.
(RepeatedMoments) |> plotMeans()
To enhance the plot to match other implementations of estimation statistics, it can have plausibility curves added, have colors modified, and have the values suppresed.
(RepeatedMoments) |> plotMeans(main = "Confidence Intervals and Plausibility Curves", values = FALSE, line = 9, col = "darkblue")
(RepeatedMoments) |> addPlausible(col = "darkblue")
[1] 3
Analyses of a Comparison
Select levels for a comparison and get a simple plot of the confidence intervals and values.
(RepeatedMoments) |> focus(Outcome1, Outcome2) |> plotComparison(RepeatedCorrs)
Get an enhanced plot that includes a plausibility curve just for the comparison.
(RepeatedMoments) |> focus(Outcome1, Outcome2) |> plotComparison(RepeatedCorrs, main = "Confidence Intervals and a Plausibility Curve", ylim = c(0, 20), values = FALSE)
(RepeatedMoments) |> focus(Outcome1, Outcome2) |> addPlausible(RepeatedCorrs, type = c("none", "none", "right"), col = c("white", "white", "darkgoldenrod"))
[1] 2
Analyses of a Mean Contrast
Create a contrast and get a plot of the mean subsets and the contrast (along with their values).
(RepeatedMoments) |> plotSubsets(RepeatedCorrs, contrast = c(-1, .5, .5), labels = c("Outcome1", "Others"))
Create an enhanced plot of the mean subsets, adding a plausibility curve to the subsets and the contrast.
(RepeatedMoments) |> plotSubsets(RepeatedCorrs, contrast = c(-1, .5, .5), labels = c("Outcome1", "Others"), main = "Confidence Intervals and Plausibility Curves", ylim = c(0, 20), values = FALSE, col = c("mediumblue", "mediumblue", "black"))
(RepeatedMoments) |> addPlausible(RepeatedCorrs, contrast = c(-1, .5, .5), type = c("right", "right", "right"), col = c("black", "black", "black"))
[1] 3