.do_linear_univ | R Documentation |
A helper function to be used in a loop to perform univariable linear regression and output nicely formatted results.
.do_linear_univ(
data,
formula,
format = "html",
conf_level = 0.95,
include_last_row = TRUE,
...
)
data |
A data frame or tibble. |
formula |
A character string specifying the formula for the regression. |
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 |
... |
Additional arguments. |
A tibble or data frame with regression results.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.