Description Usage Arguments Value Author(s) References Examples
This simple function extracts estimates of regression parameters and their standard errors from one or more models and prints them in a table.
1 | compareCoefs(..., se = TRUE, print=TRUE, digits = 3)
|
... |
One or more regression-model objects. These may be of class |
se |
If |
print |
If |
digits |
Passed to the |
This function is used for its side-effect of printing the result. It returns a matrix of estimates and standard errors.
John Fox jfox@mcmaster.ca
Fox, J. and Weisberg, S. (2011) An R Companion to Applied Regression, Second Edition, Sage.
1 2 3 4 5 6 7 | mod1 <- lm(prestige ~ income + education, data=Duncan)
mod2 <- update(mod1, subset=-c(6,16))
mod3 <- update(mod1, . ~ . + type)
compareCoefs(mod1)
compareCoefs(mod1, mod2)
compareCoefs(mod1, mod2, mod3)
compareCoefs(mod1, mod2, se=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.