Learn R Programming

report (version 0.6.0)

report_intercept: Report intercept

Description

Reports intercept of regression models (see list of supported objects in report()).

Usage

report_intercept(x, ...)

Value

An object of class report_intercept().

Arguments

x

The R object that you want to report (see list of of supported objects above).

...

Arguments passed to or from other methods.

Examples

Run this code
# \donttest{
library(report)

# GLMs
report_intercept(lm(Sepal.Length ~ Species, data = iris))
report_intercept(glm(vs ~ disp, data = mtcars, family = "binomial"))
# }

# \donttest{
# Mixed models
library(lme4)
model <- lme4::lmer(Sepal.Length ~ Petal.Length + (1 | Species), data = iris)
report_intercept(model)
# }
if (FALSE) { # requireNamespace("rstanarm", quietly = TRUE)
# \donttest{
# Bayesian models
library(rstanarm)
model <- suppressWarnings(stan_glm(Sepal.Length ~ Species, data = iris, refresh = 0, iter = 600))
report_intercept(model)
# }
}

Run the code above in your browser using DataLab