help with the error
Mostrar comentarios más antiguos
Hi can some one please help me correct this error:
Code:
clc;
clear;
model = garch('Constant',0.1,'GARCH',0.4,'ARCH',0.5);
rng('default')
[Vn,Yn] = simulate(model,100,'numPaths',5);
Error:
Undefined function 'garch' for input arguments of type 'char'.
Error in simm (line 4)
model = garch('Constant',0.1,'GARCH',0.4,'ARCH',0.5);
2 comentarios
the cyclist
el 3 de Jul. de 2013
What do get if you type
which garch
?
dav
el 3 de Jul. de 2013
Respuestas (1)
Shashank Prasanna
el 3 de Jul. de 2013
Editada: Shashank Prasanna
el 3 de Jul. de 2013
You either:
1) Don't have the Econometrics Toolbox installed. Check the output of VER:
>> ver
2) Are using a version of MATLAB older than MATLAB r2012a
Here are the release notes:
4 comentarios
Shashank Prasanna
el 3 de Jul. de 2013
Dav, you don't have the Econometrics Toolbox installed with your MATLAB.
Which means you won't be able to use the garch functions.
You can either obtain the econometrics toolbox and install it or look for alternatives in the File Exchange:
Shashank Prasanna
el 3 de Jul. de 2013
Please post a new question since this isn't related to the original question. This way you will have more eyes looking at it.
You can estimate your parameters by calling the arima estimate function part of the econometrics toolbox. If you don't have it you can try using some functions written by other in the file exchange the link to which I shared in the previous post.
Categorías
Más información sobre Conditional Variance Models en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!