gretl
Previous Topic  Next Topic 

gretl  (Gnu Regression, Econometrics and Time-series Library) is a free, open-source package for econometric analysis.   Stat/Transfer can read and write gretl cross-section files.  It does not support Time series and panel data structures.


gretl supports numeric variables only (with the exception of a single, alphanumeric, or date row label). 


Reading gretl


If necessary, Stat/Transfer will decompress gretl files automatically.  The character encoding is read from the file and will override any encode set in the options.  If the file contains row labels, Stat/Transfer will attempt to convert them to dates using the scan format set in the Date/Time Formats Reading options.   If the row labels cannot be converted to dates, they will be treated as an ordinary string variable.  The row label will be named obs.


Writing gretl


Stat/Transfer writes uncompressed gretl files with strings in Unicode (utf-8).   You can control which variable is used as the row label in Options/Output Options(2).   Note that because gretl has only a numeric data type, only one string variable can be written to the output file.  All Date/Time variables, except for one  used for the row label (optionally), will be written to the file as Excel dates (the number of days since December 30, 1899, with time as a decimal fraction of the day.  



Target Type

Output Type


Table

Byte                        

Int

Long

Float

Double

Number


Date

Excel date number


Time

Decimal Fraction (noon = .5)


Date/time

Date number + time


String

Not exported except for row label