Learn R Programming

dse (version R2000.6-1)

forecasts: Extract Forecasts

Description

Extract forecasts from and object.

Usage

forecasts(obj, ...)

Arguments

obj
An object which contains forecasts.

Value

  • The forecasts from 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.

See Also

forecast

Examples

Run this code
if(is.R()) data("egJofF.1dec93.data", package="dse1")
	model <- est.VARX.ls(window(egJofF.1dec93.data, end=c(1985,12)))
	pr <- forecast(model, conditioning.inputs=input.data(egJofF.1dec93.data))
	z <- forecasts(pr)

Run the code above in your browser using DataLab