View source: R/coef_matrix-print.R
print.coef_matrix | R Documentation |
coef_matrix
produced
by the coef_matrix
function.Print an object of class coef_matrix
produced
by the coef_matrix
function.
## S3 method for class 'coef_matrix'
print(x, digits = 2, ...)
x |
An |
digits |
the minimum number of significant digits to be used: see
|
... |
Additional arguments to the
|
A p \times 4
matrix with columns for the
estimated coefficient, its standard error, t-statistic
and corresponding (two-sided) p-value.
Joshua French
fit <- lm(100/mpg ~ disp + hp + wt + am, data = mtcars)
(coefm <- coef_matrix(fit))
# print more digits
print(coefm, digits = 8)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.