Thanks Allin for getting back to me on this.
I've now done it and it seems that the executable was found. I now get
the following errors:
/Couldn't read from '/home/visore/.gretl/x12arima/.est'//
//problem reading X-12-ARIMA model info//
/
The directory /home/visore/.gretl/x12arima exists, but there is no file
.est. I've tried creating an empty file named .est, but that didn't help
either.
Should I manually write out the model to file, or does the gretl library
handle that for me?
Chris
On 2014/03/30 09:55 PM, Allin Cottrell wrote:
On Sun, 30 Mar 2014, GOO Creations wrote:
> Not that important. Thought it was something I'm doing wrong. Will use
> another method.
OK, but it turns out it's not excessively difficult to enable x12-arima in
third-party code. Including and calling a function such as the following,
before trying arima estimation via x12a, should do the job:
void my_set_paths (void)
{
ConfigPaths cp = {0};
strcpy(cp.x12a, "x12a");
gretl_set_paths(&cp);
}
The x12a member of the ConfigPaths struct is of length 512 bytes; you
should copy in the full path to the x12a executable unless it is located
in the PATH, in which case just the basename of the executable is
sufficient (as shown above).
The function above uses the syntax of gretl_set_paths() in current CVS. If
you're using libgretl from the gretl 1.9.14 release or earlier there's a
second gretlopt argument required: you should just set this to OPT_NONE,
as in
gretl_set_paths(&cp, OPT_NONE);
Allin Cottrell
> On 2014/03/30 11:03 AM, Allin Cottrell wrote:
>> On Sun, 30 Mar 2014, GOO Creations wrote:
>>
>>> I'm trying to estimate an ARMA model using X12. I'm linking the
gretl
>>> libraries to my program and these are the errors I'm getting:
>>>
>>> //.spc: Permission denied//
>>> //Failed to execute x12arima//
>> Calling x-12-arima via libgretl is not going to be easy for "third
party"
>> code at present. The mechanism depends on code in the gretl GUI and
>> command-line programs.
>>
>> However, there may be a way of getting this to work. I'll take a look and
>> report back.
_______________________________________________
Gretl-users mailing list
Gretl-users(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users