0
I’m working with the function.
lm(y~x)
simple regression, due to tests I checked autocorrelation, so the blibliography indicates a transformation. Something like:
Y=B1*(1-p)+B2(X-(p*X[-1]))
That would be the application of correction P in the model, being that P is known to me. Someone knows a technique of autocorrelation correction, next to the function presented?
Thank you
If there is autocorrelation in the data, why not use the weapon model?
– Marcus Nunes
Marcus, it’s a multivariate would and I don’t know how to program for more than one explanatory variable. but it is quite possible to be solved with an ARIMA 2,1,2
– Felipe Silva
Then use a VARIMA (ARIMA Vector). I suggest not trying to reinvent the wheel.
– Marcus Nunes
How would you program that in R?
– Felipe Silva