Description Usage Arguments Value Examples
Generate an in-text report of a Likelihood Ratio Test
1 | report_LRT(result = NULL, format = "rmarkdown", inline = T)
|
result |
Results from likelihood ratio test to report |
format |
How should the output be formatted? Available options are:
|
inline |
Should non-plain results be formatted for inline ( |
Formatted results containing chi-square statistic, degrees of freedom, and p-value.
1 2 3 4 5 6 7 8 9 | ## Not run:
politeness <- read.csv("http://www.bodowinter.com/tutorial/politeness_data.csv")
library(lme4)
max.model <- lmer(frequency ~ attitude + (1 | subject) + (1 | scenario), data=politeness)
reduced.model <- lmer(frequency ~ attitude + (1 | subject), data=politeness)
results <- anova(reduced.model, max.model, refit = F)[2, ]
report_LRT(result = results, format = 'rmarkdown')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.