Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

forecasts

Extract Forecasts


Description

Extract forecasts from and object.

Usage

forecasts(obj)
    ## S3 method for class 'forecast'
forecasts(obj)
    ## S3 method for class 'featherForecasts'
forecasts(obj)
    ## S3 method for class 'horizonForecasts'
forecasts(obj)

Arguments

obj

An object which contains forecasts.

Details

This generic method extracts the forecasts (only) from objects returned by other methods that calculate forecasts. Usually the objects returned by the methods which calculate forecasts contain additional information which is not returned by this extractor.

Value

The forecasts from an object which contains forecasts.

See Also

Examples

data("egJofF.1dec93.data", package="dse")
    model <- estVARXls(window(egJofF.1dec93.data, end=c(1985,12)))
    pr <- forecast(model, conditioning.inputs=inputData(egJofF.1dec93.data))
    z <- forecasts(pr)

dse

Dynamic Systems Estimation (Time Series Package)

v2020.2-1
GPL-2
Authors
Paul Gilbert <pgilbert.ttv9z@ncf.ca>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.