coef_matrix | R Documentation |
coef_matrix
returns the coefficients
element of the summary
function, which is a
matrix with columns for the estimated coefficients, their
standard error, t-statistic and corresponding (two-sided)
p-values.
coef_matrix(object)
object |
an object of class |
A p \times 4
matrix with columns for the
estimated coefficient, its standard error, t-statistic
and corresponding (two-sided) p-value. Aliased
coefficients are omitted. The additional class
coef_matrix
is added for custom printing.
Joshua P. French
## a fitted model
fit <- lm(100/mpg ~ disp + hp + wt + am, data = mtcars)
coef_matrix(fit)
print(coef_matrix(fit), digits = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.