"forecast"(object, h=ifelse(object$m > 1, 2 * object$m, 10), PI=FALSE, level=c(80, 95), fan=FALSE, xreg=NULL,
lambda=object$lambda, bootstrap=FALSE, npaths=1000, innov=NULL, ...)nnetar" resulting from a call to arima.xreg is used,
h is ignored and the number of forecast periods is
set to the number of rows of xreg.PI is FALSE, then
level, fan, bootstrap and npaths are all
ignored.TRUE, level is set to seq(51,99,by=3). This is suitable for fan plots.TRUE, then prediction intervals computed
using simulations with resampled residuals rather than normally
distributed errors. Ignored if innov is not NULL.h rows and npaths columns (vectors are
coerced into a matrix). If present, bootstrap is ignored.simulate.nnetarforecast".The function summary is used to obtain and print a summary of the
results, while the function plot produces a plot of the forecasts and prediction intervals.The generic accessor functions fitted.values and residuals extract useful features of
the value returned by forecast.nnetar.An object of class "forecast" is a list containing at least the following elements:
" is a list containing at least the following elements:nnetar.fcast <- forecast(fit)
plot(fcast)
Run the code above in your browser using DataLab