View Single Post
Old 2009 July 9th, 06:21 PM   #5 (permalink)
greeneggs
Eager!
 
Join Date: Apr 2009
Posts: 78
greeneggs is on the way!
Sorry about the confusion with the jplv7 folder. I downloaded the toolkit from here: Econometrics Toolbox for MATLAB
and it decompresses into a folder called jplv7, so I incorrectly assumed it was the same for you.

What you should do then is do the add with subfolders with whatever folder contains the SAR folder and all of the other folders (coint, data, diagn, etc)
I'm not sure if this will fix your problem though.

Have you tried running the demo files: sar_d, sar_d2, and sar_d3? If those work, then you know that the problem isn't with his code but with your own.

One thing t may be is that our code is slightly different. For example where you have:
Code:
[p,liktmp,exitflag,output] =
    fminbnd('f_sar',lmin,lmax,options,eo,el,W,detval);
I have:
Code:
[prho,liktmp,exitflag,output] = fminbnd('f_sar',rmin,rmax,options,detval,epe0,eped,epe0d,n);
So maybe you just have an older version of the toolbox that doesn't work and downloading the one in my above link may fix it? It does say on the website that the code was updated in January of this year.

Otherwise I'm not sure what's wrong. Apparently you aren't using f_sar with the right number of inputs (there should be 6), but it's probably another one of his codes doing that and not you.

I would try running the demo files and then try updating the toolkit and see if that fixes it. Otherwise you should post or pm me your code and files so I can try to figure out what's going on.


As for the change notification handle warning, it's not a huge deal. What it means is that it won't automatically check all your files to see if they've been changed or if any new files have been added to the directory. You can still make it recognize all changes manually after every change by typing

Code:
clear all
path(path)
But if you don't want to have to do that manually the problem is probably that you just have too many files in that directory and you need to move some to subdirectories and not include them in the path or something. You can read more about it here and here.

Good luck!
greeneggs is offline   Reply With Quote