I am trying to write the following formula in matlab for autoregression: Yt = PYt-1 +...+ PYt-6 + Et (Et = random error defined as (0,1)) I know my weighted P values and I want the formula to be for order of 6. I'm new to Matlab and do have econometrics toolbox but unsure of how to write this properly, any help much appreciated.

 채택된 답변

Shashank Prasanna
Shashank Prasanna 2014년 3월 20일
편집: Shashank Prasanna 2014년 3월 20일

1 개 추천

mdl = arima('Constant',0.05,'AR',{0.1,0.2,0.3,0.4,-0.5,-0.6})
Assuming those are your PY values.
Please check the documentation for examples and other information:

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Multivariate Models에 대해 자세히 알아보기

질문:

2014년 3월 16일

편집:

2014년 3월 20일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by