Learn R Programming

api2lm (version 0.2)

print.predict_adjust: Print predict_adjust object

Description

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

Usage

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

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

Arguments

x

An predict_adjust object produced by the predict_adjust function.

...

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

Author

Joshua French

Examples

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

Run the code above in your browser using DataLab