forecasts {dse}R Documentation

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

forecast

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)

[Package dse version 2020.2-1 Index]