Error in Hierarchical Risk Parity Portfolio

조회 수: 4 (최근 30일)
Sizwe
Sizwe 2024년 4월 30일
댓글: Sizwe 2024년 5월 5일
i followed code provided on MATLAB help section under finance/create hierarchical risk parity portfolio and I get this error 'Unrecognized function or variable 'getLeafNodesInGroup'. PLease advise on what can solve this

답변 (1개)

Dhruv
Dhruv 2024년 5월 1일
Hi Sizwe,
In the Hierarchical Risk Parity Portfolio example, the function 'getLeafNodesInGroup' is a local function and not an in-built function. Upon opening the example in MATLAB R2024a, using the command:
openExample('finance/HierarchicalRiskParityPortfolioExample')
the section titled 'Local Functions' contains the function definition of 'getLeafNodesInGroup'.
Hope this helps!
  댓글 수: 2
Zhibin Huo
Zhibin Huo 2024년 5월 2일
Hi, the local function itself also contains "getLeafNodesInGroup", so I have no idea how he solve this. May I please ask some advices?
Sizwe
Sizwe 2024년 5월 5일
The issue here is that 'getLeafNodes InGroup' may not nbe properly defined. Despite using the entire code one and the same error. So the local fuction does not lead to the sorting of assets for quasi-diagonalization.
Please assist on this

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

카테고리

Help CenterFile Exchange에서 Portfolio Optimization and Asset Allocation에 대해 자세히 알아보기

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by