title: time series forecasting using R CARET package
body: <p>I am new to the CARET package. I was wondering how it can be used to forecast multivariate time series data. </p>
  
  <pre><code>data(economics)
  library(caret)
  library(kernlab)
  
   myTimeControl &lt;- trainControl(method = "timeslice", initialWindow =200,horizon =50, fixedWindow  = TRUE)
  
  svmRbftune &lt;- train(unemploy ~ pce + pop + psavert + uempmed,
                  data = economics[1:250,], method = "svmRadial",
                  tunelength = 14, trControl = myTimeControl)
  
  svmpredict&lt;-predict(svmRbftune,economics[251:350,])
  </code></pre>
  
  <p>But then how can we predict one step ahead from here </p>