Help With Finishing Module

Everything related to the development of modules in jamovi
Post Reply
julian2
Posts: 15
Joined: Tue Feb 21, 2023 4:29 pm

Help With Finishing Module

Post by julian2 »

I am currently developing the bmtest module, which implements the Brunner-Munzel test, as was requested (https://forum.jamovi.org/viewtopic.php?p=5699).

I am almost done but there are a few things for which I need the help of someone from the jamovi team or an experienced module developer, as they require knowledge about topics that are not documented. I would be very thankful if someone were able to help me. The current state of the package can be found here: https://github.com/karchjd/bmtest. This is what I think still needs to be done. However, please let me know if you think something else is needed.
  • A picture for the menu. Could not find how this is done.
  • The test starts running if I only supply the dependent variable and of course fails then, instead of waiting for the group variable.
  • I am failing to update the help files for R, see https://forum.jamovi.org/viewtopic.php?t=2503
  • The short version: Is there a way to ensure that a switch is only active if enabled? The long version: I have switches for the test type and whether confidence intervals are requested. The asymptotic and the random permutation test support confidence intervals. However, the full permutation test does not. Consequently, I only enable the confidence interval switch when either asymptotic or random permutation is activated. However, the menu can be tricked into activating confidence intervals for the full permutation approach by activating let's say asymptotic, activating confidence intervals, and then deactivating asymptotic again. Confidence interval is then disabled in an active state.
User avatar
MAgojam
Posts: 349
Joined: Thu Jun 08, 2017 2:33 pm
Location: Parma (Italy)

Re: Help With Finishing Module

Post by MAgojam »

Hey Julian,
A little while ago, I answered some of your questions with a PR code.

For the module icon that should appear in the ribbon, here is an answer from Jth:
https://forum.jamovi.org/viewtopic.php?p=4710#p4710
It's been a while and I don't know if it's still like this (maybe there are some changes), @Janathon when he passes he will be able to tell.

Cheers,
Maurizio
julian2
Posts: 15
Joined: Tue Feb 21, 2023 4:29 pm

Re: Help With Finishing Module

Post by julian2 »

Thanks so much, Maurizio! That solved almost all issues.
julian2
Posts: 15
Joined: Tue Feb 21, 2023 4:29 pm

Re: Help With Finishing Module

Post by julian2 »

During testing, I encountered a new problem. One of the tests implemented is a permutation test (option Random permutations). On large data sets this test may take long (could be hours). Is there a way to stop computation, the equivalent of pressing ctrl + c in R? My idea was to stop computation if option random permutations is unchecked, and was wondering whether this would be possible via the javascript event handlers. SPSS solves the same problem by imposing a used-defined time limit on the computations. I would also be fine with that. Other suggestions are also welcome.
User avatar
MAgojam
Posts: 349
Joined: Thu Jun 08, 2017 2:33 pm
Location: Parma (Italy)

Re: Help With Finishing Module

Post by MAgojam »

julian2 wrote: Thu Mar 16, 2023 11:55 am SPSS solves the same problem by imposing a used-defined time limit on the computations.
Do you have a PR with a suggestion from me that might look like.

Cheers,
Maurizio.
julian2
Posts: 15
Joined: Tue Feb 21, 2023 4:29 pm

Re: Help With Finishing Module

Post by julian2 »

Thanks so much for your help again Maurizio!
Post Reply