I guess I'm missing some basic knowledge and I may be overlooking something important here...
Background: I have a dataset in which animals from 4 different groups (1 control and 3 treatment groups) underwent grip strength testing. Each trial consisted of ~5 measurements. In order to see how the treatment groups were different from the controls, a linear mixed model was done using the lmer function from lme4 as follows:
model1<-lmer(griPASTA~group+(1|ID), data=all)
griPASTA is a variable indicating grip strength, the group indicates treatment, and ID is the ID of each animal.
sjPlot::tab_model(model1, p.adjust="none")
creates this: [OHDA 6 vs CTR] p = 0.001 enter image description here
... and including the holm adjustment
sjPlot::tab_model(model1, p.adjust="holm")
provides this: [OHDA 6 vs CTR] p = 0.004 enter image description here
However, when I try to specify contrasts myself and use the same correction by holm, I get pretty different p values.
e.g.
m1_emm <- emmeans(model1, specs = c("group"))
CTR <- c(1,0,0,0)
OHDA_12 <- c(0,1,0,0)
OHDA_6 <- c(0,0,1,0)
OHDA_6X <- c(0,0,0,1)
m1_simple<-contrast(m1_emm, method = list("CTR - OHDA 12" = CTR - OHDA_12,
"CTR - OHDA 6"= CTR - OHDA_6,
"CTR - OHDA 6 w/o REB"= CTR - OHDA_6X),
adjust = "holm")%>% summary (infer=T)
[OHDA 6 vs CTR] p = 0.0100 enter image description here
For comparison, this is what I get when I remove the correction:
m1_simple<-contrast(m1_emm, method = list("CTR - OHDA 12" = CTR - OHDA_12,
"CTR - OHDA 6"= CTR - OHDA_6,
"CTR - OHDA 6 w/o REB"= CTR - OHDA_6X),
adjust = "none")%>% summary (infer=T)
[OHDA 6 vs CTR] p = 0.0033 enter image description here
So, the holm-corrected p-value for the comparison between CTR and OHDA 6 is 0.004 using the tab_model with p.adjust, and 0.01 if I introduce the correction in the emmeans contrast function.
Do you have any idea what is the source of this difference and how to approach it? I assume I'm missing something and the adjustments actually take different things into account in the first and the second approach?
Anyways, I guess I'm missing some basic stats/R knowledge and I'm too stupid to comprehend this at the moment so any help would be really appreciated.