How to create a forecast object in R
<p>I have wrote a function that forecasts a time series object using different forecast methods like <code>forecast::nnetar</code>, <code>forecast::tbats</code>, <code>forecast::Arima</code> and <code>forecast::ets</code>.<br>
I know that <code>forecastHybrid::hybridModel</code> function is doing this, I just wanted to create something more customized. So I am now returning a list with <code>result$mean</code>, <code>result$error</code> and <code>result$fit</code>. I want to use accuracy or plot function like forecast object. Is there a easy way to do that? or is it too complicated? </p>

<p>EDIT: About the function, it takes a <code>ts</code> object, an arima model-that I found by taking differences and checking ACF-PACF graphs- and a horizon to be forecasted.  It applies <code>nnetar</code>, <code>ets</code>, <code>tbats</code> and my arima model.<br>
It combines their fits and forecasts and create a new fit values and forecast values.<br>
It returns a list object with forecasted values as <code>result$mean</code> (this is also same in forecast objects), fitted values as <code>result$fit</code> and errors as <code>result$error</code>.<br>
Now with that returned object, I cant automate some series of works like having accuracy, making plots etc. So I want to return a forecast object if it is possible. that is what it is.</p>