print.predict_adjust {api2lm}R Documentation

Print predict_adjust object

Description

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

Usage

## S3 method for class 'predict_adjust'
print(x, ...)

Arguments

x

An predict_adjust object produced by the predict_adjust function.

...

Additional arguments to the print.default function, such as digits.

Value

Depending on the interval argument of predict_adjust:

A vector of predictions if interval = "none".

A matrix of predictions and bounds with column names fit, lwr, and upr if interval is set. For type = "terms" this is a matrix with a column per term and may have an attribute "constant".

If se.fit is TRUE, a list with the following components is returned:

Author(s)

Joshua French

Examples

fit <- lm(100/mpg ~ disp + hp + wt + am, data = mtcars)
(cia <- predict_adjust(fit))
print(cia, digits = 3)

[Package api2lm version 0.2 Index]