powered by
This tidies the result of a coefficient test, from the coeftest function in the lmtest package.
coeftest
lmtest
# S3 method for coeftest tidy(x, ...)
coeftest object
extra arguments (not used)
A data.frame with one row for each coefficient, with five columns:
data.frame
The term in the linear model being estimated and tested
The estimated coefficient
The standard error
test statistic
p-value
# NOT RUN { 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