Skip to content

Appropriate to use t_to_d() on estimated marginal mean contrasts from ANOVA? #617

Discussion options

You must be logged in to vote

Hey, this will give approximate d effect sizes (see discussion here #212). But if you are using {emmeans} you can use emmeans::eff_size() to get d effect sizes directly:

library(palmerpenguins) # dataset
library(car) # anova functions
library(effectsize) # effect sizes
library(dplyr)

# assigns data to a dataframe we call "df"
df <- palmerpenguins::penguins

# drop rows with missing values
df <- df[complete.cases(df)==TRUE, ]

flipper_fit <- stats::aov(flipper_length_mm ~ species, data = df)

# Extract estimated marginal means
flipper_emmeans <- emmeans::emmeans(flipper_fit, specs = ~ species)

emmeans::eff_size(
  flipper_emmeans,
  method = "pairwise",
  sigma = sigma(flipper_fit),
  edf =

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DallasNovakowski
Comment options

Answer selected by mattansb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #616 on November 06, 2023 08:32.