forecasts: Extract Forecasts

Description Usage Arguments Details Value See Also Examples

View source: R/dse2.R

Description

Extract forecasts from and object.

Usage

1
2
3
4
5
6
7
    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

1
2
3
4
    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)

Example output

Loading required package: tfplot
Loading required package: tframe

Attaching package: 'dse'

The following objects are masked from 'package:stats':

    acf, simulate

dse documentation built on March 26, 2020, 7:12 p.m.