View source: R/display-linear.R
display_linear | R Documentation |
Given a fit
object, univariable and (optionally) multivariable results from
linear regression are displayed in a format suitable for presentation.
display_linear(
fit,
data,
add_multi = FALSE,
format = "html",
conf_level = 0.95,
include_last_row = TRUE
)
fit |
An object of class |
data |
A tibble or data frame with the full data set. |
add_multi |
Logical; include multivariable results. Default is |
format |
Display format in case I need to escape some characters. A placeholder for now in case I need it in the future. Default is "html". |
conf_level |
The confidence level to use for the confidence interval. Must be strictly greater than 0 and less than 1. Defaults to 0.95, which corresponds to a 95 percent confidence interval. |
include_last_row |
Adds a row at the end of each set of results to give
some breathing room. Default is |
A tibble
## Not run:
# Example with the `mtcars` dataset:
model <- glm(mpg ~ cyl + disp, family = gaussian, data = mtcars)
display_linear(fit = model, data = mtcars, add_multi = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.