format_tidy_gen: Print generic regression output with CI and P values

Description Usage Arguments Examples

View source: R/format_tidy_gen.R

Description

This is a wrapper around broom:::tidy that adds formatted confidence intervals and p values

Usage

1
2
format_tidy_gen(rslt, d = 2, d_pVal = 3, sub_out = NULL, sub_in = NULL,
  exponentiate_here = FALSE, Beta = "Beta", reportIntercept = FALSE)

Arguments

rslt

Output from regression (lm, glm, or coxPH)

d

Decimal places used for HR and confidence interval

d_pVal

Decimal places used for p value.

sub_out

String to from variable names to replace with sub_in

sub_in

String to from variable names to replace instead of sub_out

exponentiate_here

Select whether exponentiation should be done (CoxPH, Poisson, etc.). Default is FALSE

Beta

Label for coefficient. Default is 'Beta'

reportIntercept

Whether intercept should be reported. Default is FALSE.

Examples

1
2
3
dontrun{
format_tidy_gen()
}

Oromendia/oromendia documentation built on April 6, 2021, 6:54 a.m.