I conducted a logistic regression and multiple comparison
library(lme4)
model < glmer(y ~ Genger + Age + subject +
(1 | ParticipantID), data = data, family = binomial(link = "logit"))
library(multcomp)
multicomp<-glht(model,mcp(Behavior="Tukey"))
summary(multicomp)
The output:
Estimate Std. Error z value Pr(>|z|)
subject2 - subject1 == 0 -2.19503726 0.66179761 -2.89596 < 0.001 ***
I want to display the exact p-values instead of < 0.001*** . What should I do?
I tried
options(digits=10)
but the output did not change.
You can change it like this:
However, there is a reason why the exact p-value isn't printed. It is easily impacted by precision of floating-point numbers and also based on statistical assumptions which introduce uncertainty because they don't hold exactly. The
multcompdevelopers are trying to protect you against interpreting meaningless numbers.