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

function cohens_d: Hedge's g correction incorrect for one sample design #15

Open
spressi opened this issue May 10, 2024 · 1 comment
Open

Comments

@spressi
Copy link

spressi commented May 10, 2024

Using cohens_d with Hedge's g correction does nothing for a one sample design (i.e., when y = NULL):
iris %>% group_by(Species) %>% summarise( cohen_d = apa::cohens_d(Sepal.Length), hedges_g = apa::cohens_d(Sepal.Length, corr="hedges_g"), check = cohen_d == hedges_g )

Hedge's g correction should be applied with df = N-1 according to Cumming (2011) p. 294

@dgromer
Copy link
Owner

dgromer commented May 14, 2024

Check ec5a2d7

iris |>
  group_by(Species) |>
  summarize(cohen_d = cohens_d(Sepal.Length),
            hedges_g = cohens_d(Sepal.Length, corr = "hedges_g"),
            check = cohen_d == hedges_g)

now returns

# A tibble: 3 × 4
  Species    cohen_d hedges_g check
  <fct>        <dbl>    <dbl> <lgl>
1 setosa        14.2     14.0 FALSE
2 versicolor    11.5     11.3 FALSE
3 virginica     10.4     10.2 FALSE

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

No branches or pull requests

2 participants