-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
Does pingouin.compute_esci work also for Glass' delta? #256
Comments
Hi @Federico2111, It does not! Thanks, |
Thanks for replying @raphaelvallat. Could you please explain why it does not work for Glass' delta, if it is a Cohen-type effect size? It might be worth adding that feature: maybe this issue could be turned into a feature request. Glass' delta is an important effect size, to be used when two distributions have unequal variances, which can happen experimentally. Cohen's d and Hedges' g should not be used in that case, as the literature advises. Since there is a roadmap for another stable release of pingouin, which includes also additions to the "esci" library, it might worth adding the parametric ci for Glass' delta. I hope this helps. |
Hi @Federico2111, I did not implement it because I wanted to focus on the most widely-used effect size. Also, I assume that the users will need to specify which variable is the control group and which variable is the patient group, which will add a layer of complexity to the function (need to add extra parameters). Could you please find scientific references as well as a reference software (SPSS, JAMOVI, R) that implements the parametric CI for the Glass delta effect size? Can a reasonable approximation be obtained using the same formula as the Cohen's d effect size? Thanks, |
Hi @raphaelvallat, How much reasonable and accurate is the approximation to use Cohen's d parametric CI on Glass' delta is a question for the statistics experts, who hopefully will help us out here. I suppose it depends on how much unequal the variances of the two groups are? Speaking of the parametric CI around Glass' delta: This article can be useful: This other article shows how to calculate the variance for Glass’ delta, which can be used to calculate the parametric CI: This dissertation as well explains how to calculate the CI around Glass’ delta: In R, apparently they calculate the CI around Glass’ delta using the pooled standard deviation, i.e. similarly to Hedges’ g: https://easystats.github.io/effectsize/reference/cohens_d.html
|
I will add the following comment. You mentioned that the problem with Glass' delta is that the user has to specify which is the control group, thus another parameter has to be added to the libraries. In the calculation of the effect size (pingouin.compute_effsize), the user could be told that the active group is the first one inputted (x), while the control group is the second one inputted (y). That is all you need to know to calculate Glass' delta. Similarly, in the calculation of the CI (pingouin.compute_esci), the user could be told that the size of the active group is the first one inputted (nx), while that of the control group is the second one inputted (ny). That is all you need to know to calculate Glass' delta parametric CI. |
Good idea — I agree. Unfortunately, I won't have the time to implement this in the near future, but I'll leave it open if anyone wants to submit a pull request. Thanks, |
Thanks, I agree. I could see that you have created a roadmap for the next release of pingouin, where you have included some of my suggestions, for example the parametric CI around eta squared. |
Hi @Federico2111, I became a father last week and will be on paternity leave for a few weeks. I would say the next version of Pingouin will be released at the earliest in June. The best way to help speed us this process is to submit pull requests to implement the proposed changes. Thanks, |
Thanks @raphaelvallat and enjoy your paternity leave |
On the pingouin.compute_esci, I can read that the confidence interval can be calculated for Cohen's d or Hedges' g: https://pingouin-stats.org/generated/pingouin.compute_esci.html
Does it work also for Glass' delta, which is a Cohen-type effect size similar to the other two?
If so, I think it should be specified.
Thanks
The text was updated successfully, but these errors were encountered: