jasp-stats / jasp-issues

This repository is solely meant for reporting of bugs, feature requests and other issues in JASP.
59 stars 29 forks source link

[Bug]: Confidence interval not reported correctly #2370

Closed Apratimguha closed 11 months ago

Apratimguha commented 1 year ago

JASP Version

0.18.1

Commit ID

No response

JASP Module

Descriptives

What analysis are you seeing the problem on?

Confidence interval for mean

What OS are you seeing the problem on?

Windows 11

Bug Description

This is happening with all data sets, so I am going to illustrate with a dataset I created: 1,2,3,4, ..., 13,14, 15. As you can see below, all confidence intervals reported using the method "T model" are exactly the same! image image image

While I have illustrated 3 cases, actually the confidence interval does not change at all!

Expected Behaviour

Confidence interval should change with confidence level. Here is the R output: x = c(1:15) image image

So, JASP is always reporting the 95% CI!

Steps to Reproduce

  1. Create new data entering values 1, 2, 3, ...., 15 in a column.

  2. image

  3. Choose column 1 as data. 4.Descriptives>Statistics>Confidence interval for mean

  4. Change Width options. image

Log (if any)

No response

Final Checklist

EJWagenmakers commented 1 year ago

I can reproduce this. Don, perhaps good to add a unit test for this too.

brandmaier commented 1 year ago

I can also reproduce this. Here is a suggested fix: https://github.com/jasp-stats/jaspDescriptives/pull/231

shun2wang commented 11 months ago

Fixed by https://github.com/jasp-stats/jaspDescriptives/pull/233 and will including in the next release.

Apratimguha commented 11 months ago

Thanks a lot for your help.

With best regards, Apratim Guha

Sent from a mobile device. Apologies for brevity and errors, if any.

On Fri, 8 Dec 2023, 13:47 Shun Wang, @.***> wrote:

Closed #2370 https://github.com/jasp-stats/jasp-issues/issues/2370 as completed.

— Reply to this email directly, view it on GitHub https://github.com/jasp-stats/jasp-issues/issues/2370#event-11190706355, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANXDORNMYYIF2ME4XA6V4U3YILEKFAVCNFSM6AAAAAA6VLEJKSVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRGE4TANZQGYZTKNI . You are receiving this because you authored the thread.Message ID: @.***>