title: Forecasting with tsDyn - Error in R
body: <p>Good morning,<br>
  I am currently using a time series of daily sales to make forecasting.<br> 
  The dataset, called <code>myts</code> has previously been transformed into <code>time series</code> object.</p>
  
  <p>Whenever I run the following code, it gives me an <strong>error</strong>:</p>
  
  <pre><code>require(tsDyn)
  x &lt;- log(myts)
  mod.ar &lt;- linear(x, m=2)
  </code></pre>
  
  <blockquote>
    <p>Error: <code>x</code> must be a vector, not a ts object, do you want
    <code>stats::lag()</code>?</p>
  </blockquote>
  
  <p>Best regards,
  Alex</p>