On Tue, 13 Mar 2012, simon rupar wrote:
I'm currently writing some app in windows system, which uses
libgretl. I've
successfully implemented function LSQ using OLS. I thought, ok, let's try
Least Absolute Deviation.
I have made test sample, which calls LAD and then when things became
interesting. It outputed same results as LSQ. Then I realize that MODEL
holds property ( "errcode"). I checked that out and found out that it was
12. After quick reference and some source code viewing I saw it was
something wrong with LAD plugin.
You can print the gretl error message in this sort of case. If
you have a gretl "prn" available, do
errmsg(err, prn);
or just try
printf("%s\n", gretl_errmsg_get());
Anyway, the most likely problem is that libgretl can't find
its plugins. Using current CVS gretl you can do this via the
function set_gretl_plugin_path()
http://gretl.sourceforge.net/API/new/gretl/gretl-Plugins.html
For libgretl built from the 1.9.7 release you'd need to set
the environment variable GRETL_PLUGIN_PATH ; see
http://gretl.sourceforge.net/API/old/gretl/gretl-Plugins.html
Allin Cottrell