CAViaR: Conditional Autoregressive Value at risk by Regression Quantile
Ältere Kommentare anzeigen
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
Antworten (1)
Duminda
am 22 Nov. 2013
0 Stimmen
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 Kommentar
Jingyu lee
am 3 Jun. 2018
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!
Kategorien
Mehr zu MATLAB Compiler finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!