dot-do_linear_univ: Do univariable linear regression and extract results in nice...

.do_linear_univR Documentation

Do univariable linear regression and extract results in nice format.

Description

A helper function to be used in a loop to perform univariable linear regression and output nicely formatted results.

Usage

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

Arguments

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 TRUE.

...

Additional arguments.

Value

A tibble or data frame with regression results.


emilelatour/latable documentation built on Nov. 25, 2024, 4:58 a.m.