print.coef_matrix {api2lm}R Documentation

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 class 'coef_matrix'
print(x, digits = 2, ...)

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.

Value

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

Author(s)

Joshua French

Examples

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

[Package api2lm version 0.2 Index]