On 12/03/2012 05:36 AM, juan de botton wrote:
Hi everyone,
My name is Juan Pablo de Botton and I am developing a simple function
(it is an autocorrelation test) to share with the Gretl community in the
near future. The statistic has its own distribution so, in order to do
the test, I need to insert a complete statistical table that depends on
the number of the observations and independent variables you use in your
regression. Since I have little experience in hansl programming, I was
wondering if there is a simple way to this. My first idea was to 1)
insert all the values in excel, 2) import them to gretl and, finally, 3)
define that matrix in my script. The function should be available to
everyone so I don't know if this a good way to do it.
Hi Juan,
I would skip steps 1 and 2. Just paste the values into the script file
and add 'matrix whatever = {' at the beginning and '}' at the end. Of
course, maybe you still need to add commas and semicolons in the right
places as row/column separators, but to do that I would actually
recommend a good text editor and some search&replace operations. (This
may also work directly in gretl's script editor, it depends.)
thanks,
sven