gretl

gretl

Screenshot of gretl
Developer(s) The gretl Team
Initial release January 31, 2000 (2000-01-31)
Stable release 1.10.2 / September 13, 2015 (2015-09-13)
Preview release Through CVS
Development status Active
Written in C
Operating system Cross-platform
Available in Multilingual (11)
Type Statistical software
License GNU GPLv3
Website gretl.sourceforge.net

gretl is an open-source statistical package, mainly for econometrics. The name is an acronym for Gnu Regression, Econometrics and Time-series Library.

It has a graphical user interface (GUI) and can be used together with TRAMO/SEATS, R, Stata, Python, Octave, and Ox. It is written in C, uses GTK+ as widget toolkit for creating its GUI, and uses gnuplot for generating graphs. As a complement to the GUI it also has a command-line interface.

gretl can output models as LaTeX files.

Besides English, gretl is also available in Greek, Chinese, Basque, Catalan, Czech, German, French, Italian, Albanian, Polish, Portuguese, Russian, Spanish and Turkish.

Gretl has been reviewed several times in the Journal of Applied Econometrics[1][2][3] and in the Journal of Statistical Software.[4]

Supported data formats

gretl offers its own fully documented, XML-based data format.

It can also import ASCII, Comma-Separated Values, databank, EViews, Excel, Gnumeric, GNU Octave, JMulTi, OpenDocument Spreadsheet, PcGive, RATS 4, SAS xport, SPSS, and Stata files. It can export to GNU Octave, R, Comma-Separated Values, JMulTi, and PcGive file formats.

Hansl

Gretl has its own scripting language, called Hansl (which is a recursive acronym for Hansl's A Neat Scripting Language). It is an interpreted language, whose primary scope is to automate repetitive tasks and make it easy for econometricians, not necessarily professional code writers, to create functions and procedures implementing techniques not already present in gretl.

Hansl is the language used to write the gretl add-ons known as function packages.[5]

Here's a simple example of Hansl

matrix A = {1, 2 ; 3, 4}
matrix B = inv(A)
matrix C = A*B

print A B C

Running the above code produces

A (2 x 2)

  1   2 
  3   4

B (2 x 2)

    -2      1 
   1.5   -0.5

C (2 x 2)

      1.0000       0.0000 
  8.8818e-16       1.0000

See also

References

External links

This article is issued from Wikipedia - version of the Wednesday, May 04, 2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.