Confidence Intervals for Difference in Means

Let’s take a look at the confidence intervals for the difference as well as prediction intervals.

Confidence intervals for differences between means

One way to check if there is a significant difference between means is to plot the difference with a confidence interval that’s calculated using the standard error of the difference. It’s best to work with the mean difference and the SED when we have matched data (such as paired data). The arm package has a coefplot() function that generates this type of graph, shown in the code widget below:

Get hands-on with 1200+ tech skills courses.