-
Notifications
You must be signed in to change notification settings - Fork 17
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
DescTools::HunterGaston does not calculate Hunter-Gaston index #120
Comments
Thanks for spotting this! |
<!-- P {margin-top:0;margin-bottom:0;} -->
Thanks, I will keep an eye on your GitHub.
FYI: I found out that the Hunter-Gaston index is also available in the
vegan package, under the name simpson.unb (i.e. unbiased version of the Simpson index).
Best
Wim
…--
Prof.
dr Wim Bernasco | Netherlands Institute for the Study of Crime and Law Enforcement (NSCR) |
NSCR Blog
| ***@***.***
Phone:
+
31 6 2958 6451
Van: Andri Signorell ***@***.***>
Verzonden: zondag 11 juni 2023 10:48
Aan: AndriSignorell/DescTools
CC: Wim Bernasco; Author
Onderwerp: Re: [AndriSignorell/DescTools] DescTools::HunterGaston does not calculate Hunter-Gaston index (Issue #120)
CAUTION: This email originated from outside your organization. Exercise caution when opening attachments or on clicking links from unknown senders.
Thanks for spotting this!
This function apparently did not have my full attention and care. I review the facts of the case.
—
Reply to this email directly,
view it on GitHub, or
unsubscribe.
You are receiving this because you authored the thread.Message
ID: ***@***.***>
|
This has been fixed in DescTools 0.99.50.4 |
Hmm, I fear we're not yet done here. Do you have a good testing example? |
clrpackages
pushed a commit
to clearlinux-pkgs/R-DescTools
that referenced
this issue
Nov 21, 2023
…sion 0.99.51 DescTools 0.99.51 (2023-11-02) ------------------------------ NEW FUNCTIONS ADDED: * Labels() is a vectorized function for Label(). * SDN() and VarN() return the uncorrected (biased) estimators for standard deviation and variance (sometimes needed for didactical reasons). * EX() and VarX() return the expected value and the variance for the distribution of a discrete random variable. * Mgsub() is a vectorized version for gsub, allowing to replace multiple patterns at the same time. * New function GiniDeltas() returns the Gini variant from Deltas. (Credits to Wim Bernasco, AndriSignorell/DescTools#120) (NEWS truncated at 15 lines)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for developing and maintaining this package.
I stumbled on an issue with the HunterGaston function in DescTools version 0.99.48.
The HunterGaston function does not seem to do what it promises. It does not calculate the Hunter-Gaston index (Hunter & Gaston, 1988, DOI:10.1128/jcm.26.11.2465-2466.1988). Instead it seems to calculate the adjusted Gini index with small-sample correction proposed by Deltas (2003, DOI:10.1162/rest.2003.85.1.226).
To make HunterGaston live up to its promise, the two lines
should be replaced by this line:
or by (better readable) these five lines:
I suggest to rename the original function to "DeltasGini".
The text was updated successfully, but these errors were encountered: