print.predict_adjust: Print 'predict_adjust' object

View source: R/predict_adjust-print.R

print.predict_adjustR 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:

  • fit: vector or matrix as above

  • se.fit: standard error of predicted means

  • residual.scale: residual standard deviations

  • df: degrees of freedom for residual

Author(s)

Joshua French

Examples

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

api2lm documentation built on July 9, 2023, 5:52 p.m.