Forecasting with fourier series in r. LSW is commonly used in predicting time series.