print_nmc_p | R Documentation |
This function takes a nested model comparison ANOVA object and prints the result in LaTeX or markdown. This currenlty only works for linear mixed effects model comparisons.
print_nmc_p(table, model, latex = TRUE)
table |
An ANOVA table |
model |
The model you want to report |
latex |
(Logical) If true, output is appropriate for LaTeX. Otherwise formatting is for markdown. |
library(lme4)
mod1 <- lmer(Reaction ~ 1 + (1|Subject), data = sleepstudy, REML = FALSE)
mod2 <- lmer(Reaction ~ 1 + Days + (1|Subject), data = sleepstudy,
REML = FALSE)
aov_table <- anova(mod1, mod2, test = "Chisq")
print_nmc_p(table = aov_table, model = 'mod2')
print_nmc_p(table = aov_table, model = 'mod2', latex = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.