univar_multi_glance: Multiple Pairs of Univariate Analysis with Glanced Output

View source: R/univar_multi.R

univar_multi_glanceR Documentation

Multiple Pairs of Univariate Analysis with Glanced Output

Description

Fitting multiple univariate models of one y_var on one or more x_vars using any fun. The output will be broom::glance.

Usage

univar_multi_glance(data, fun = "lm", y_var, x_vars, pkg = "stats", ...)

Arguments

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 fun

...

Passing to fun

Value

A broom::glance data frame

Examples

iris |> univar_multi_glance(fun = "lm", "Sepal.Length", c("Species", "Petal.Width"))


Lightbridge-KS/lbmod documentation built on Jan. 28, 2024, 6:21 p.m.