univar_multi_glance | R Documentation |
Fitting multiple univariate models of one y_var
on one or more x_vars
using any fun
.
The output will be broom::glance
.
univar_multi_glance(data, fun = "lm", y_var, x_vars, pkg = "stats", ...)
data |
A data frame |
fun |
(character) A modeling function |
y_var |
(character) Outcome variable |
x_vars |
(character) One or more predictor variable(s) |
pkg |
(character) Package of |
... |
Passing to |
A broom::glance
data frame
iris |> univar_multi_glance(fun = "lm", "Sepal.Length", c("Species", "Petal.Width"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.