Learn R Programming

statip (version 0.2.3)

predict.default: Default model predictions

Description

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

Usage

# S3 method for default
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

Run this code
# NOT RUN {
stats::predict(NULL)
stats::predict(NULL, newdata = data.frame(x = 1:2, y = 2:3))

# }

Run the code above in your browser using DataLab