Skip to content

[Bug]:Paired samples T-Test shows wrong sign #3459

@bellhaeuser

Description

@bellhaeuser

JASP Version

0.19.3

Commit ID

No response

JASP Module

T-Tests

What analysis are you seeing the problem on?

Paired Samples T-Test

What OS are you seeing the problem on?

macOS Silicon

Bug Description

In my data set, the T1-value is higher than the T2-value. When I insert the two variables into the left (T1) and right (T2) cell in the JASP interface, it calculates a positive t-value and a positive Cohen's d--although actually a decrease is happening which should give me a negative t and d.
This seems to be a new problem, at least I haven't seen this problem in the past.

T1T2simulation.csv

Expected Behaviour

When T1 is higher than T2, the t-value and the Cohen's d should be negative (--> decrease).
When T1 is lower than T2, the t-value and the Cohen's d should be positive (-->increase).

Steps to Reproduce

  1. Open attached csv-file ("T1T2simulation.csv") in JASP.
  2. Chose "Paired Samples T-Test".
  3. Insert variable T1 first (into the left cell).
  4. Insert variable T2 next (into the right cell).
  5. Activate "Descriptive statistics" and "Cohen's d".

Image

Log (if any)

No response

More Debug Information

No response

Final Checklist

  • I have included a screenshot showcasing the issue, if possible.
  • I have included a JASP file (zipped) or data file that causes the crash/bug, if applicable.
  • I have accurately described the bug, and steps to reproduce it.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions