Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

condense_fit

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

Quickly Create Elegant Regression Results Tables and Plots when Modelling

v1.0.2
MIT + file LICENCE
Authors
Ewen Harrison [aut, cre], Tom Drake [aut], Riinu Ots [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.