Learn R Programming

api2lm (version 0.2)

print.coef_matrix: Print an object of class coef_matrix produced by the coef_matrix function.

Description

Print an object of class coef_matrix produced by the coef_matrix function.

Usage

# S3 method for coef_matrix
print(x, digits = 2, ...)

Value

A \(p \times 4\) matrix with columns for the estimated coefficient, its standard error, t-statistic and corresponding (two-sided) p-value.

Arguments

x

An coef_matrix object produced by the coef_matrix function.

digits

the minimum number of significant digits to be used: see print.default.

...

Additional arguments to the print.data.frame function, such as digits.

Author

Joshua French

Examples

Run this code
fit <- lm(100/mpg ~ disp + hp + wt + am, data = mtcars)
(coefm <- coef_matrix(fit))
# print more digits
print(coefm, digits = 8)

Run the code above in your browser using DataLab