AR(1) process estimate infer, the number of extracted residual term

조회 수: 1 (최근 30일)
mirewuti muhetaer
mirewuti muhetaer 2019년 11월 19일
Hi, all
let us say, we have 10 observation of variable Y and i use the following code:
[ytrend, ycycle]=hpfilter(Y,1600); %create 10 observations for each.
md1=ar(1,0,0);
summarize md1;
esty=estimate(md1,Y);
%accroding to my understanding, it is Y_t=constant+rho*Y_{t-1} + epsion_t;, so there are total 9 regression in the above estimation process, so there will be 9 observation in the corresponding residual term. however, when i run the following code to extract the residuals.
[yres, yv]=infer(esty, ycycle);
% what i get is 10 observation for yres variable.
how could that be possible?.
Thanks.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Autocorrelated and Heteroscedastic Disturbances에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by