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

Report effect size for each group #854

Open
yuliaUU opened this issue Apr 14, 2023 · 0 comments
Open

Report effect size for each group #854

yuliaUU opened this issue Apr 14, 2023 · 0 comments

Comments

@yuliaUU
Copy link

yuliaUU commented Apr 14, 2023

I wonder if it is possible to extract effect size for each group comparisions:

# install.packages("tidyverse")  # for everything ;)
library(tidyverse)

# install.packages("ISLR")
library(ISLR)

# install.packages("ggstatsplot")
library(ggstatsplot)

# stabilize the output of "sample_n()"
set.seed(1)
d <- Wage %>% group_by(education) %>% sample_n(50, replace = TRUE)

p<- ggbetweenstats(
  data = d,
  x    = education,
  y    = wage,
  type = "nonparametric",
  xlab = "education", ## label for the x-axis
  ylab = "wage", ## label for the y-axis
  ## turn off messages
  ggtheme = cowplot::theme_cowplot(), ## a different theme
  package = "yarrr", ## package from which color palette is to be taken
  palette = "info2", ## choosing a different color palette
  title = "Comparison of wage across education",
  caption = "Source: Gapminder Foundation")
p

I see that effect size calculated for the entire dataset: however it is not informative- since each pairwise Comparision can have variable effect size, so it would be nice to replace p values on a plot with the actual effect sizes

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

1 participant