Skip to contents

Forecast method

Usage

forecast(forecaster, models, ...)

# S4 method for Forecaster,Trained
forecast(forecaster, models, newx, type, newoffset, check.newx = F, ...)

# S4 method for missing,Trained
forecast(forecaster, models, newx, type, newoffset, ...)

# S4 method for Forecaster,TrainedList
forecast(forecaster, models, newx, type, newoffset, ...)

# S4 method for Forecaster,Tuned
forecast(forecaster, models, newx, type, newoffset, ...)

# S4 method for missing,Tuned
forecast(forecaster, models, newx, type, newoffset, ...)

# S4 method for Forecaster,TunedList
forecast(forecaster, models, newx, type, newoffset, ...)

# S4 method for ForecasterList,Trained
forecast(forecaster, models, ...)

# S4 method for ForecasterList,TrainedList
forecast(forecaster, models, ...)

Arguments

forecaster

an object of class Forecaster

models

an object of class Trained

...

further arguments to the forecaster

newx

the new values at which prediction are to be made

type

the type of prediction

newoffset

the new offset, if provided it is added to the predicted value

check.newx

logical, whether to check the newx to make sure features are matching

Value

The prediction