I am trying to run a toolbox for estimating VAR models: the BEAR toolbox. Having read the manual, I am to run bear_4_2.m. Also, in the first window that comes up after running the file, I am to add the path of the excel file to be run, data.xlsx, under ‘Set path to data’. However, after these two steps, I am getting the following error messages:
Error using copyfile
cp: /Users/SEYI/Downloads/toolbox 4.2/files\results.xlsx: No such file or directory
Error in initexcel (line 7)
copyfile(sourcefile,destinationfile);
Error in bear_toolbox_main_code (line 109)
initexcel;
Error in run (line 96)
evalin(‘caller’, [script ‘;’]);
Error in bear_4_2 (line 33)
run files/bear_toolbox_main_code;
If you want to make the toolbox work on a Mac, it can be done. Just change the \ backslashes to / wherever they give an error.
For the Excel compatibility, you can use the Matlab user function ‘xlwrite’:
It circumvents the use of Excel by using the Apache POI java library. The only additional fix needed is changing all appearances of ‘xlswrite’ to ‘xlwrite’ in the code files of the Bear toolbox. You can do this systematically or just run the toolbox several times and trace the error to the file that produces it.
I had the same errors that @S_V published at the beginning. I think that dvdijcke is right (also maybe the data path has to be changed in the first window of the toolbox). I have used Windows and it works.
Anyway, now, I am working on Stata following the paper: “Abrigo, Michael and Love, Inessa., 2015: Estimation of panel vector autoregression in Stata: A package of programs.”
Now I have some problem with cointegration, since I do not know how to face it in a Panel VAR. Do you know how to handle cointegration using Panel VAR in Stata?
I would be really grateful for your help. Thanks for the attention.
I am facing a problem when running the BEAR Toolbox on Windows (10) through the available interface. Everytime I run the model I get the following error message: “No matching files were found. Error in => bear_toolbox_main_code at line 109”.
Would you have any idea on what time of problem it may be related with?
I would be really grateful for your help! Many thanks.