cf: Extract and format coefficients table

Description Usage Arguments Value Author(s) Examples

View source: R/cf.R

Description

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

Usage

1
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

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

CUFF documentation built on May 2, 2019, 12:40 p.m.