cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
Querida
Level I

Incorrect 95% confidence interval range for matched pairs plot?

I am trying to create a bland-altman plot using the matched pairs function in JMP. I created the plot below and decided to double-check some of the statistics calculated on excel. I found that while the standard error and mean difference were correct, my upper and lower 95% confidence interval values were very different than the ones provided by JMP Pro 16

 

SUB-JUG.PNGexcel sub-jug.PNG

 

I tried to test out their match pair example (found here: https://www.jmp.com/support/help/en/16.0/?os=win&source=application&utm_source=helpmenu&utm_medium=a...) and got similar values when I calculated the 95% confidence interval range, which tells me my manual calculations are correct.

 

05b72960-444a-4388-8f78-9202c69ea1b8.pngjmp excel.PNG   

 

I'm wondering if there is an error in the matched pairs report for the plot I created or if I'm misunderstanding confidence interval calculations. Any thoughts and suggestions would be appreciated! Thanks!

 

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Phil_Kay
Staff

Re: Incorrect 95% confidence interval range for matched pairs plot?

Hi,

 

In your calculation of the confidence interval you use 1.96. This would be approximately correct for a large sample size. However, for smaller samples sizes the confidence interval should be calculated using the value from the t-distribution corresponding to the number of degrees of freedom. This will give wider confidence intervals.

 

For example, for n = 7 (6 degrees of freedom) and alpha = 0.05, the t value is 2.4469. The Excel function to calculate this is =T.INV.2T(0.05,6). If you use that in place in 1.96, you should find you get the confidence interval you were given by JMP.

 

This article from the Statistics Knowledge Portal and this white paper might be useful resources for you.

 

I hope that helps.

Phil 

View solution in original post

Re: Incorrect 95% confidence interval range for matched pairs plot?

Adding to @Phil_Kay's explanation, here is the same exercise using JMP instead of Excel:

 

ci.PNG

View solution in original post

2 REPLIES 2
Phil_Kay
Staff

Re: Incorrect 95% confidence interval range for matched pairs plot?

Hi,

 

In your calculation of the confidence interval you use 1.96. This would be approximately correct for a large sample size. However, for smaller samples sizes the confidence interval should be calculated using the value from the t-distribution corresponding to the number of degrees of freedom. This will give wider confidence intervals.

 

For example, for n = 7 (6 degrees of freedom) and alpha = 0.05, the t value is 2.4469. The Excel function to calculate this is =T.INV.2T(0.05,6). If you use that in place in 1.96, you should find you get the confidence interval you were given by JMP.

 

This article from the Statistics Knowledge Portal and this white paper might be useful resources for you.

 

I hope that helps.

Phil 

Re: Incorrect 95% confidence interval range for matched pairs plot?

Adding to @Phil_Kay's explanation, here is the same exercise using JMP instead of Excel:

 

ci.PNG