jasp-issues icon indicating copy to clipboard operation
jasp-issues copied to clipboard

[Bug]: Game of Skill input of zeros creates NaN

Open levolz opened this issue 4 years ago • 4 comments

JASP Version

0.16.1

Commit ID

No response

JASP Module

No response

What analysis are you seeing the problem on?

Game of Skill

What OS are you seeing the problem on?

Windows 11

Bug Description

Game of Skill allows input (0, 0) for prior skill parameter & 0 input for points gained, leading to NaN output for the analytic solution

Expected Behaviour

Not allow beta parameters = 0 as that is not defined

Steps to Reproduce

Recreate with 0 input as described above

Log (if any)

No response

Final Checklist

  • [X] I have included a screenshot showcasing the issue, if any.
  • [X] I have included a JASP file that causes the crash/bug, if any.
  • [X] I have accurately described the bug, and steps to reproduce it.

levolz avatar Mar 17 '22 15:03 levolz

hi @levolz. thanks for reporting. @Jiashun97 any ideas what to do here? Maybe input control or a footnote is required?

juliuspfadt avatar Apr 21 '22 16:04 juliuspfadt

hi @levolz. thanks for reporting. @Jiashun97 any ideas what to do here? Maybe input control or a footnote is required?

You are right. The two parameters for beta distribution should be larger than 0. @vandenman Is it possible to add an input control for the table?

Jiashun97 avatar Apr 21 '22 22:04 Jiashun97

@Jiashun97 I think you can set a lower bound with minimum.

vandenman avatar Apr 22 '22 14:04 vandenman

still valid for latest 0.19 beta

tomtomme avatar May 25 '24 11:05 tomtomme