Page 1 of 1

Confidence interval for t-test

Posted: Mon Apr 02, 2018 9:40 pm
by arcaldwell49
Hey guys, quick question. I noticed the confidence interval for the t-tests is for the confidence interval around the mean difference not the effect size. I think in the current format this may confuse users (myself included in that group) considering the order is (mean difference, SEM, effect size, confidence interval). Would you all be open to moving that confidence interval to next to the mean difference. Also, I have included the code for the confidence intervals for effect sizes if you all would like to add them.

Sorry for the all the comments recently :grin:

For the independent samples

Code: Select all

            LL <- d - (stats::qt(((
              100 - (ciWidth)
            ) / 100) / 2,
            res$parameter)) * abs(d) / stats::qt(res$p.value /
                                                      2,
                                                    res$parameter)
            
            UL <- d + (stats::qt(((
              100 - (100 * ciWidth)
            ) / 100) / 2,
            res$parameter)) * abs(d) / stats::qt(res$p.value /
                                                      2,
                                                    rest$parameter)
For the paired samples

Code: Select all

            LL <- d - (stats::qt(((
              100 - (ciWidth)
            ) / 100) / 2,
            stud$parameter)) * abs(d) / stats::qt(stud$p.value /
                                                      2,
                                                    stud$parameter)
            
            UL <- d + (stats::qt(((
              100 - (100 * ciWidth)
            ) / 100) / 2,
            stud$parameter)) * abs(d) / stats::qt(stud$p.value /
                                                      2,
                                                    stud$parameter)


Re: Confidence interval for t-test

Posted: Thu Apr 05, 2018 11:17 am
by jonathon
ah yeah, that's good idea.

i've created an issue:

https://github.com/jamovi/jamovi/issues/463

jonathon