report_model {report} | R Documentation |
Report the model type
Description
Reports the type of different R objects (see list of supported objects in
report()
).
Usage
report_model(x, table = NULL, ...)
Arguments
x |
The R object that you want to report (see list of of supported objects above). |
table |
A table obtained via |
... |
Arguments passed to or from other methods. |
Value
A character
string.
Examples
library(report)
# h-tests
report_model(t.test(iris$Sepal.Width, iris$Sepal.Length))
# ANOVA
report_model(aov(Sepal.Length ~ Species, data = iris))
# GLMs
report_model(lm(Sepal.Length ~ Petal.Length * Species, data = iris))
report_model(glm(vs ~ disp, data = mtcars, family = "binomial"))
# Mixed models
library(lme4)
model <- lme4::lmer(Sepal.Length ~ Petal.Length + (1 | Species), data = iris)
report_model(model)
# Bayesian models
library(rstanarm)
model <- suppressWarnings(stan_glm(Sepal.Length ~ Species, data = iris, refresh = 0, iter = 600))
report_model(model)
[Package report version 0.5.9 Index]