condense_fit: Condense model output dataframe for final tables

condense_fitR Documentation

Condense model output dataframe for final tables

Description

Internal function, not called directly. Can only be used in conjunction with extract_fit

Usage

condense_fit(
  .data,
  explanatory_name = "explanatory",
  estimate_name = NA,
  estimate_suffix = "",
  p_name = "p",
  digits = c(2, 2, 3),
  confint_sep = "-"
)

Arguments

.data

Dataframe of four or five columns, must be this order, (1) explanatory variable names, (2) estimate, (3) confidence interval lower limit, (4) confidence interval upper limit, (5) p-value (optional).

explanatory_name

Name for this column in output

estimate_name

Name for this column in output

estimate_suffix

Appeneded to estimate name

p_name

Name given to p-value estimate

digits

Number of digits to round to (1) estimate, (2) confidence interval limits, (3) p-value.

confint_sep

String to separate confidence intervals, typically "-" or " to ".


finalfit documentation built on Sept. 11, 2024, 9:01 p.m.