CAViaR: Conditional Autoregressive Value at risk by Regression Quantile
古いコメントを表示
Hi, i am trying to compute the Engle & Manganelli´s CAViaR, i downloaded the codes from Manganelli´s web page, however while i´m running it i get an error, which says:
Error in ==> RQobjectiveFunction at 39 VaR = SAVloop(THETA, BETA, y, VaR(1)); % Call the C program to compute the VaR loop.
Error in ==> CAViaROptimisation at 119 RQfval(i) = RQobjectiveFunction(initialTargetVectors(i,:), 1, MODEL, inSampleObs, y(:,t), THETA, empiricalQuantile(t));
Error in ==> CAViaR at 38 eval(a)
It is related with C program but the fact is that i don´t know why Manganelli uses such a program to compute the VaR loop. It would be very helpul if someone knows about it.
Regards. Gustavo
回答 (1 件)
Duminda
2013 年 11 月 22 日
0 投票
Hi,
Those CAViaR codes use C programs associated with MATLAB files. If you run the program in Windows 32bit version, there won't be a problem with C files. Those .DLL files have to be in the same folder. Problems ocurre when you run them in Win 64bit. Because .DLL files are compatible with 32bit. To solve this, you need to recompile these using MATLAB MEX command. To do so, first you need to install Windows SDK 64 bit from http://www.microsoft.com/en-us/download/details.aspx?id=8442. Because MATLAB 64bit does not have a built in C compiler. Further details may be found in http://www.mathworks.com/support/compilers/R2012a/win64.html.
Good luck.
1 件のコメント
Jingyu lee
2018 年 6 月 3 日
Could you please tell me how to solve the problem when run the code with Matlab 2017b? ( Microsoft Windows SDK 7.1 is not supported as of R2017b)
Many thanks!
カテゴリ
ヘルプ センター および File Exchange で MATLAB Compiler についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!