| tidy.coeftest {broom} | R Documentation |
This tidies the result of a coefficient test, from the coeftest
function in the lmtest package.
## S3 method for class 'coeftest' tidy(x, ...)
x |
coeftest object |
... |
extra arguments (not used) |
A data.frame with one row for each coefficient, with five columns:
term |
The term in the linear model being estimated and tested |
estimate |
The estimated coefficient |
std.error |
The standard error |
statistic |
test statistic |
p.value |
p-value |
if (require("lmtest", quietly = TRUE)) {
data(Mandible)
fm <- lm(length ~ age, data=Mandible, subset=(age <= 28))
coeftest(fm)
tidy(coeftest(fm))
}