dot-do_logistic_univ: Do univariable logistic regression and extract results in...

.do_logistic_univR Documentation

Do univariable logistic regression and extract results in nice format.

Description

A helper function to be used in a loop to do univariable regression and give some nice lookin' results/

Usage

.do_logistic_univ(
  data,
  formula,
  format = "html",
  conf_level = 0.95,
  exponentiate = TRUE,
  include_last_row = TRUE,
  ...
)

Arguments

data

a data frame or tibble

formula

A character string

format

Display format in case I need to escape some characters. A place holder 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.

exponentiate

Logical indicating whether or not to exponentiate the the coefficient estimates. This is typical for logistic and multinomial regressions, but a bad idea if there is no log or logit link. Defaults to TRUE.

include_last_row

Adds a row at the end of each set of results to give some breathing room. Default is TRUE.

...

Additional arguments.

Value

A tibble or data frame


emilelatour/purposeful documentation built on Jan. 6, 2023, 8:04 a.m.