필터 지우기
필터 지우기

Diebold Li for loop

조회 수: 2 (최근 30일)
Suzann kristi Øygarden
Suzann kristi Øygarden 2020년 5월 11일
답변: Harsha Priya Daggubati 2020년 5월 14일
I am trying to run the Diebold Li model, but I am not able to run the for loop:
% Loop through and fit each end of month yield curve
for jdx = 1:size(EstimationData,1)
tmpCurveModel = DieboldLi.fitBetasFromYields(EOMDates(jdx),lambda_t*12,daysadd(EOMDates(jdx),30*TimeToMat),EstimationData(jdx,:)');
Beta(jdx,:) = [tmpCurveModel.Beta1 tmpCurveModel.Beta2 tmpCurveModel.Beta3];
end
When I run this I get error: Undefined variable "DieboldLi" or class "DieboldLi.fitBetasFromYields".

답변 (1개)

Harsha Priya Daggubati
Harsha Priya Daggubati 2020년 5월 14일
Hi,
This is a shipped example, you can easily run the example using MATLAB Online or by the following command:
openExample('fininst/Demo_DieboldLi')
The error you mentioned sayns DieboldLi is undefined. I suspect this particular object is cleared accidentally from your worspace during execution. If the issue still persists, make use of breakpoints to solve your issue.
Hope I am able to point in the right direction!

카테고리

Help CenterFile Exchange에서 Stochastic Differential Equation (SDE) Models에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by