cf {CUFF}R Documentation

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)

[Package CUFF version 1.9 Index]