Skip to content

[Bug]: how exactly is a differing sample size per group handled? #3728

@renatajorge78-dotcom

Description

@renatajorge78-dotcom

JASP Version

0.95.2

Commit ID

No response

JASP Module

Power

What analysis are you seeing the problem on?

Power analysis comparing two proportions

What OS are you seeing the problem on?

macOS Intel

Bug Description

I use JASP to teach dental undergraduates and I'm very pleased with it (thank you all!) but I always get stuck on the power analysis for comparing two proportions regarding the sample size input in relation to p1 and p2. I initially assumed that p1 should match N1 and p2 should match N2 but that doesn't seem to always add up and it's also not clear what to input in Sample size per group (N) when the two groups have different sample sizes - I usually start with N1 (and match that with p1) but end up having to fiddle a bit with N and the proportions to finally get them to match.
On the independent sample t-test, it's again not super clear what the Sample size per group (N) means when the two groups have different sample sizes - I believe we need to report N1, but I always have to go by trial and error, although it's never as complicated as the proportions one.
I'm not sure if this is a bug or I might be missing something obvious, apologies if it's the latter, but if you could clarify it for me, I'd be very grateful.

Expected Behaviour

  1. p1 should match N1 and p2 should match N2
  2. It should be clearer what Sample size per group (N) is supposed to be, particularly when the two samples are not equal

Steps to Reproduce

I can't really reproduce this, sorry!

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

Bug: LowBugs that has little impact on the main functionality, and their fix can be easily postponed.DocumentationModule: jaspPower

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions