필터 지우기
필터 지우기

Why do I get an error using estimate for an msVAR model?

조회 수: 2 (최근 30일)
RKF
RKF 2024년 4월 27일
답변: Walter Roberson 2024년 4월 27일
Hi,
I want use "estimate" to fit the parameters of an msVAR model but I get the error "number of rows in presample array 'Y0' must be at least 1".
I don't know why I keep getting this error, since I am closelye following one of MATLABs examples (Analyze US Unemployment Rate Using Markov-Switching Model).
Mdl is the model to be estimated, Mdl0 contains the initial values. I don't see what I am missing here.
EstMdl = estimate(Mdl,Mdl0,Data);

답변 (1개)

Walter Roberson
Walter Roberson 2024년 4월 27일
By default, Y0 is the initial portion of Y (which is your Data).
If your Y (Data) is sufficiently small, then Y0 might potentially be empty.

카테고리

Help CenterFile Exchange에서 Conditional Mean Models에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by