Skip to content
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

Add effect size functions #6

Open
mccarthy-m-g opened this issue Feb 8, 2024 · 1 comment
Open

Add effect size functions #6

mccarthy-m-g opened this issue Feb 8, 2024 · 1 comment
Labels
enhancement New feature or request very nice Nice

Comments

@mccarthy-m-g
Copy link

Hi Paul,

Nice package.

4FEA1C2D-4C63-4F25-9E54-F50B42F28285

As a fellow expert in nice numbers, I was wondering what your thoughts are on adding effect size functions to the package, based on a measure of effect size I have tentatively named the Nice Index.

Formulas

The Nice Index provides a measure of just how nice the numbers in a vector, matrix, or data frame are, and can be measured in absolute or relative terms.*

The Absolute Nice Index is given by:

$$ \text{Nice}_a = \text{count(nice numbers)}. $$

The Relative Nice Index is given by:

$$ \text{Nice}_r = \frac{\text{count(nice numbers)}}{\text{count(not nice numbers)}}. $$

*Apologies for the not so nice formatting, GitHub’s new math rendering apparently has some kinks, and not the good kind.

API

In terms of an API for these effect sizes, I think something like this would be… noice.

how_nice(x, type = c(“absolute”, “relative”)

Keep it nice,
Michael

@Paulj1989 Paulj1989 added enhancement New feature or request very nice Nice labels Feb 10, 2024
@Paulj1989
Copy link
Owner

Haha. This is excellent Michael. If you fancy putting a PR together for this, it would be very welcome (I imagine the global {nice} community are gagging for additional functionality). Failing that, I'll take a look when I get a moment!

Stay nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request very nice Nice
Projects
None yet
Development

No branches or pull requests

2 participants