Good morning,
I am currently using a time series of daily sales to make forecasting.
The dataset, called myts has previously been transformed into time series object.
Whenever I run the following code, it gives me an error:
require(tsDyn)
x <- log(myts)
mod.ar <- linear(x, m=2)
Error:
xmust be a vector, not a ts object, do you wantstats::lag()?
Best regards, Alex