When conducting multiple hypothesis tests simultaneously, we need to account for the increased probability of Type I errors (false positives). The marginaleffects package provides several methods for multiple comparison adjustment through the hypotheses() function and its multcomp argument.
Warning: The `Month` variable is treated as a categorical (factor) variable,
but the original data is of class integer. It is safer and faster to convert
such variables to factor before fitting the model and calling a
`marginaleffects` function.This warning appears once per session.
Then, we apply a Holm adjustment to the p-values by calling the hypotheses() function and setting the multcomp argument to "holm". When we use the multcomp argument, the output will include adjusted p values and family-wise confidence intervals.
Notice that the p values and confidence intervals are larger than previously.
We can specify the conf_level argument explicitly. If we do not specify it, the size of confidence intervals will be inherited from the previous call to a marginaleffects function.