model_2_txt: Print estimate, 95% CI, and p-value of regression modles

View source: R/helpers.R

model_2_txtR Documentation

Print estimate, 95% CI, and p-value of regression modles

Description

Print estimate, 95% CI, and p-value as derived from broom::tidy\(fit\)

Usage

model_2_txt(
  data,
  beta = estimate,
  unit = "",
  lower = conf.low,
  upper = conf.high,
  p = p.value,
  term,
  filter_var,
  filter_value,
  digits = 2
)

Arguments

data

data frame as derived from broom::tidy\(fit\)

beta

estimate

unit

unit of the estimate \(needs to be quoted\)

lower

Lower bound of 95% CI

upper

Upper bound of 95% CI

p

p-value

term

Name of independent variable \(needs to be quoted, partial match is sufficient\)

filter_var

Name of variable for which a filter should be applied

filter_value

Term to be filtered \(needs to be quoted\)

digits

Number of digits for estimate and CI \(default: 2\)

## Not run: model_2_txt(df) ## End(Not run)

nrkoehler/xyzfuns documentation built on Nov. 12, 2024, 1:29 p.m.