Learn R Programming

mariposa (version 0.7.3)

predict.linear_regression: Predict from a linear_regression model

Description

For listwise + ungrouped results, dispatches to stats::predict.lm (the result inherits from "lm"). For grouped or pairwise results, raises an informative error.

Usage

# S3 method for linear_regression
predict(object, ...)

Value

A numeric vector of predictions (or a matrix/list, depending on the arguments), as returned by stats::predict.lm.

Arguments

object

A linear_regression result.

...

Passed to stats::predict.lm.