-
Notifications
You must be signed in to change notification settings - Fork 38
Add geometric and harmonic means #398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good. I still need to run it inside JASP.
76eba5c
to
579a671
Compare
I like the option to have these choices, but one thing I worry about a bit is that now 99% of the users might be confused about which option to choose when they want "the mean". I am also not so well-versed in the different types of means, so can definitely sympathize. Would it be an option to keep calling the arithmetic mean "mean", so indicate that this is the "default" mean? Just like in R, where calling |
Is there a screenshot of what that looks now? |
And we have a tooltip on the the different kinds of means? So the alternative, @JohnnyDoorn, is to have "Mean" underneath "Median", and have this be the arithmetic mean; then the two additions need to be somewhere below. But how would this look, exactly? |
Yes I like those helpfile entries! |
I agree that dropdown/radiobuttons would make the UI a bit cleaner, but it assumes users would never want to see different means next to each other in the same table. Is it reasonable to make such an assumption? Most of the time probably yes, but I can imagine we would receive a feature request sometime down the line to make it possible to calculate multiple means at the same time... If the visual indentation of the mean options is an issue, we could also flatten it like so
alternatively "Artihmetic mean", "Geometric mean", and "Harmonic mean". What do you think? |
I like the idea of one flat list, like
but I'm not sure about the parentheses in the labels. What about:
I don't have a very strong for either of the two, but @EJWagenmakers might? Either way, let's decide on the GUI and merge this PR before it becomes "one of those PRs" that's open for years. |
Actually, it's also a bit unclear if the two new means fit the category of "Central tendency"... |
If we go with any of the two options suggested by @vandenman I would prefer the first one, since it puts the most recognizable thing in the front ("Mean"). And if then the arithmetic mean is also the one ticked by default, it hopefully doesn't confuse users too much... |
Yes I think they do: https://en.wikipedia.org/wiki/Central_tendency#Measures. As I indicated before, I am fine with either options listed by @vandenman, but also keeping the options nested as they are currently. Best would be for @EJWagenmakers to give a final answer 🙂 |
Let's try option 1 then! |
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
fixes https://github.com/jasp-stats/INTERNAL-jasp/issues/2203