baggedModel function

Forecasting using a bagged model