Estimate an AR(1) model with intercept for time series yt using the LS method
조회 수: 11 (최근 30일)
이전 댓글 표시
Hi, I have to estimate an AR(1) model for yt (annualized quarter growth rate of RPI) using LS method and report the parameter estimates together with the asymptotic standard errors. I don't know how to do it. Someone cn help me?
Thanks
댓글 수: 0
답변 (1개)
Jaynik
2024년 7월 24일
Hi,
We can use the ar function in the "System Identification Toolbox", for estimating autoregressive models directly. Following is a simple code for estimating an AR(1) model using the least squares method:
% below line estimates an AR(1) model on the data yt
model = ar(yt, 1, 'ls');
% 'ls' indicates Least Squares method
Refer the following documentation to read more about this function:
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Linear Model Identification에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!