필터 지우기
필터 지우기

Remove diagnostic information, iterations, estimate results..from screen from egarch fit

조회 수: 1 (최근 30일)
Hi,
Could i get some advice on the way of removing egarch(1,1) information (diagnostic, iter, estimate...) from output screen? below is my command:
model= egarch(1,1);
fit= estimate(model,data);
EstMdl = estimate(Mdl,y,Name,Value)
it looked like I could add as a solution:
fit= estimate(model,data, 'Display', 'off');
However i end up with the following error:
Argument 'Display' did not match any valid parameter of the parser.
Thanks

채택된 답변

Brendan Hamm
Brendan Hamm 2015년 7월 6일
편집: Brendan Hamm 2015년 7월 6일
The documentation you will find online is always for the latest release of MATLAB. You are likely using a release prior which did not have this option. Prior to the 'Display' option the same could be achieved by the following:
opt = optimoptions('fmincon','Display','off'); % Get fmincon default options and turn display off
opt = struct(opt); % Convert to structure
data = randn(200,1); % Random data for fitting
model = egarch(1,1); % Create model
fit = estimate(model,data,'options',opt); % Pass options argument
This will not work in current versions of MATLAB and it is recommended to use the Name-Value arguments for the estimate function.
  댓글 수: 3
Brendan Hamm
Brendan Hamm 2015년 7월 6일
I do not believe there was an option for this prior to the Name-Value pair change that initiated this, but in current versions turning the display off suppresses this. I have also added a note to my previous answer.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Parameter Estimation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by