jasp-stats / jasp-issues

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

[Feature Request]: Bayesian Wilcoxon signed-rank Sequential Analysis or R code #1896

Open KatrinRothmaler opened 1 year ago

KatrinRothmaler commented 1 year ago

Description

When using the Bayesian Wilcoxon signed-rank test in JASP, it is not possible to plot a sequential analysis. This is particularly unfortunate because there is - to the best of my knowledge - no implementation of the Bayesian Wilcoxon signed-rank test in R (the only one I found is still in progress). Thus, it is also not possible to generate such a plot in R.

Purpose

Show how the Bayes Factor of a Bayesian Wilcoxon signed-rank test develops with increasing number of N

Use-case

Sequential Testing with a Bayesian Wilcoxon signed-rank test

Is your feature request related to a problem?

No response

Is your feature request related to a JASP module?

Unrelated

Describe the solution you would like

I would be very grateful for a) either an R function that can carry out a Bayesian Wilcoxon signed-rank test (R code must already exist, because the function is integrated in JASP) or b) a feature in JASP that allows to calculate the Wilcoxon signed-rank test for increasing number of n and plots the results (analogous to the feature "sequential analysis" for t-tests)

Describe alternatives that you have considered

I tried implementing a sequential analysis it in R, but there is no implementation of the Wilcoxon signed rank test in R available.

Additional context

I would highly appreciate it if you could provide access to your implementation of the Bayesian Wilcoxon signed-rank test. The only implementation I found is till work in progress (https://rdrr.io/github/joereinhardt/BayesianFirstAid-Wilcoxon/man/bayes.wilcox.test.html). Since cognitive data are not normally distributed in a lot of cases, this would be a really beneficial for a lot of researchers that want to do sequential testing and cannot use the standard t-test.

tomtomme commented 6 months ago

@KatrinRothmaler Any update on available R packages for this? I could not find any. And since JASP is based on R, we rely on a good R package. Otherwise this is probably not due soon, since the team would have to develop one probably alongside some publications. So this will certainly be implemented at some point, but it may need quite some time.