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

cf

Extract and format coefficients table


Description

This function extract coefficients tables from common statistical model (lm/glm/lme/lmer/t-test) and format them.

Usage

cf(x, addci = TRUE, pv.style = 1, signif = 2, expcf, ...)

Arguments

x

x is a lm/glm/lme/lmer/t.test model

addci

Logical value that tells R to add a 95% confidence interval to the output. True by default.

pv.style

Integer specifying the style (1 or 2) of p-value formatting. See help(pv) for details

signif

Either an integer specifying the number of significant digits or a dimension 3 vector for respectively the estimate, standard error and t-value

expcf

Logical value that tells R to add exponentiated value of estimate. Set to FALSE except if the model specifies a logistic regression (family = binomial)

...

Not used yet

Value

Returns a data.frame of formatted characters of the coefficient table.

Author(s)

Charles-Édouard Giguère

Examples

lm1 <- lm(Sepal.Length ~ Species, iris)
cf(lm1)

CUFF

Charles's Utility Function using Formula

v1.7
GPL (>= 2)
Authors
Charles-Édouard Giguère
Initial release
2020-09-16

We don't support your browser anymore

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