On Tue, 21 Jun 2022, 66.leon(a)gmail.com wrote:
Hi
I am new to Gretl so still a very basic user. From the Function Reference
help menu, I saw there is a ljungbox function. I would like to use this but
when I enter the function into the console window using the series name and
lag, nothing is returned, just a blank line. The same happens with other
functions listed under Statistical in the help menu. I have looked through
all the help menus and manuals but can't find guidance on how to run these
functions. Please provide instruction for how to use these functions.
Functions provide a result that you can either store into a variable, or
display via the "eval" command.
For example, try the following code:
<hansl>
open np
scalar foo = ljungbox(money, 4)
print foo
### or altenatively, if you just waht to print it out
eval ljungbox(money, 4)
</hansl>
If you have a recent versione of gretl, "=" is a handy synonym for
"eval",
as in
<hansl>
=ljungbox(money, 4)
</hansl>
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------