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

Setting function to Cohen's d or Hedges' g #31

Closed
Santihago opened this issue Apr 23, 2019 · 2 comments
Closed

Setting function to Cohen's d or Hedges' g #31

Santihago opened this issue Apr 23, 2019 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@Santihago
Copy link

Santihago commented Apr 23, 2019

Hi,

In a paired comparison, is it possible to set the function (func =) to obtain the Cohen's d or Hedges g effect size, as it is on the website version?

On the website version, I can choose between mean, median, Cohen's d and Hedges' g. On R, I tried with func = mean and func = median, and both work. But what argument should I input to have the Cohen's d effect size, as in the website?

Thank you very much.

paired_mean_diff <- data %>% dabest(., x, y, idx = c("Control", "Group"), paired = TRUE, id.column = id, ci = 95, func = mean)

@josesho josesho added the enhancement New feature or request label Apr 24, 2019
@josesho josesho modified the milestones: v0.2.0, v0.3.0 Apr 24, 2019
@josesho
Copy link
Member

josesho commented Apr 24, 2019

Hi @Santihago ,

Thanks for using our package!

Unfortunately standardized effect sizes have not been implemented in dabestr yet. We do plan on doing so but we don't have a deadline yet!

An aside: the func argument in dabest() applies that function to both the control and test groups, and then takes the difference. So even if we wrote a custom Hedges' g function, for example, it can't be passed along like this. (I have ideas on how to tweak the current API, stay tuned!)

The Python version of dabestr features Cohen's d and Hedges' g; if you are comfortable with Python you could have a look at that.

Regards,
Joses

@josesho josesho closed this as completed Apr 24, 2019
@Santihago
Copy link
Author

Thank you @josesho, I will have a look at the Python version. Good luck with the development and thank you for the great package!

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

No branches or pull requests

2 participants