u/aNervousBiologist

msummary p-values different from the p-values of my models

Hi!

I'm making summary tables for a set of linear mixed models using the function msummary and the package KableExtra. My problem is that the p-values given by the msummary function I use to build my tables are not the same that the ones in my models. I understood that msummary has a different was of calculating the p-values than the summary(lmer) but I really need the p-values from my actual models and I don't manage to figure out how to get msummary to calculate/extract that. Does someone has an idea about what I could do to fix that?

Here's my code:

modeltable=msummary(models,
                    output = "kableExtra",
                    statistic = c(
                      "SE = {std.error}"),
                    stars = c('*' = .05, '**' = .01, '***' = .001),
                    coef_map = coef_map,
                    gof_map = NA,
                    add_rows = add_rows,
                    fmt = 3,
                    escape = FALSE)

Many thanks!

reddit.com
u/aNervousBiologist — 2 days ago