strengejacke / sjPlot

sjPlot - Data Visualization for Statistics in Social Science
https://strengejacke.github.io/sjPlot
608 stars 91 forks source link

option for "lmerTest style" anova tables with main and interactive effects #451

Open mluerig opened 5 years ago

mluerig commented 5 years ago

maybe I missed it, but does sjPlot have an option to create anova tables that include the interactive effects, as shown below?

image

strengejacke commented 5 years ago

No, this is currently not possible. If anova() returns a data frame, you could at least use tab_df().

strengejacke commented 5 years ago

Sorry, I meant tab_df(), not tab_model().

ABindoff commented 4 years ago

This is how I do it, tab_anova <- function(model, digits = 1, eps = .001){ sjPlot::tab_df(broom::tidy(anova(model)) %>% mutate(p.value = format.pval(p.value, digits = digits, eps = eps)), digits = digits) }