Skip to content
Back to formatted view

Raw Message

Message-ID: <CACuGqa+zRfWmaNsfMvzLNbcwwcSbXxsE1RfCYp-94qAHBWHN=g@mail.gmail.com>
Date: 2017-02-01T19:03:57Z
From: Lal Prasad
Subject: Export Forecasted output to a table (excel)

Hi All,

Is there any way to

1) Convert the below forecast to a datafram
2) Any way to write it to an excel table?


library(vars)
library(fpp)VARselect(usconsumption, lag.max = 3,
type="const")$selectionvar <- VAR(usconsumption, p=1,type =
"both",lag.max = 3)
serial.test(var, lags.pt = 3,type = "PT.asymptotic")

fcst <- forecast(var)

Regards

Lal

	[[alternative HTML version deleted]]