predict.default: Default model predictions

Description Usage Arguments Value See Also Examples

View source: R/predict.default.R

Description

Default method of the predict generic function, which can be used when the model object is empty.

Usage

1
2
## Default S3 method:
predict(object, newdata, ...)

Arguments

object

A model object, possibly empty.

newdata

An optional data frame in which to look for variables with which to predict. If omitted, the fitted values are used.

...

Additional arguments.

Value

A vector of predictions.

See Also

predict from package stats.

Examples

1
2
stats::predict(NULL)
stats::predict(NULL, newdata = data.frame(x = 1:2, y = 2:3))

statip documentation built on Nov. 18, 2019, 1:06 a.m.