-4

My model is a glm with a three-way interaction + an additional variable (RA ~ Sex * Exp * LastExp + Mass).

How do I find the Cohen's d effect sizes for the main effects of this model? (not each pairwise comparison)

EDIT: Sorry, I was hoping there was a "straightforward" solution.

Couple lines of code look like:

Mass <- c(10.9535,4.3235,9.2485,4.8235,6.8960,8.2075)
Sex <- c("M","M","M","M","F","M")
Exp <- c("Single","Mixed","Single","Double","Single","Single","Single")
LastExp <- c("W","L","L","L","W","L")
RA <- c(40,32,41,9,27,31)

I used the emmeans package to run post hoc and see the Cohen's d effect sizes for the pairwise comparisons, but what I want is to see the Cohen's d effect sizes for the main effects of the model (show me the Cohen's d with my summary(RAmodel) output).

I tried using the cohen.d function (from the effsize package) but it doesn't seem to like that my parameters are not all numeric.

Thanks!

Mac
  • 1
  • 1
  • 1
    It's easier to help you if you provide a [reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) with sample input and desired output that can be used to test and verify possible solutions. – MrFlick Jun 02 '22 at 15:01
  • Hey mate, please provide code sample and output you are getting so the community can help you. – Amir Charkhi Jun 03 '22 at 02:34

0 Answers0