differences between arima and fitlm functions when estimating AR(1) process
Ältere Kommentare anzeigen
Hi all,
I am a little confused. I have a data x, and ran following regressions to get AR(1) coefficient.
1) mdl1= estimate(arima('ARLags',1,'Constant',0), Data)
2) mdl2= fitlm(Data(1: end-1), Data(2:end), 'Intercept', false)
To my knowledge both return the same coefficients but mdl1 and mdl2 return different AR(1) coefficients. What are differences between estimate(arima()) and fitlm()? What am I missing?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Conditional Mean Models finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!