broom (version 0.3.7)

tidy.coeftest: Tidying methods for coeftest objects

Description

This tidies the result of a coefficient test, from the coeftest function in the lmtest package.

Usage

## S3 method for class 'coeftest':
tidy(x, ...)

Arguments

x
coeftest object
...
extra arguments (not used)

Value

  • A data.frame with one row for each coefficient, with five columns:
  • termThe term in the linear model being estimated and tested
  • estimateThe estimated coefficient
  • std.errorThe standard error
  • statistictest statistic
  • p.valuep-value

Examples

Run this code
if (require("lmtest", quietly = TRUE)) {
    data(Mandible)
    fm <- lm(length ~ age, data=Mandible, subset=(age <= 28))

    coeftest(fm)
    tidy(coeftest(fm))
}

Run the code above in your browser using DataLab