# gretl

Free econometrics software with graphical tools, hansl scripting and time\-series and panel\-data methods\.

ID: Q1047 · Revision: 1095

Type: software · License: Free and open source under the GNU General Public License[^home] · Status: active

Website: https://gretl.sourceforge.net/



gretl is a free, open\-source econometrics application combining a graphical interface with its hansl scripting language\. It provides regression, time\-series and panel\-data methods, with native desktop distributions and extensions\. Its scope suits researchers and students who need statistical models and reusable analysis instructions rather than only spreadsheet calculations\.[^home]

## Modeling and reproducibility

The core includes least\-squares and likelihood estimation, instrumental\-variable and dynamic\-panel methods, and time\-series tools such as ARIMA and vector autoregressions\. hansl supports reusable scripts and matrix operations\. Graphs use gnuplot, while model output can be prepared for LaTeX\. A reproducible analysis therefore involves retaining its instructions and chosen model specification as well as the source observations\.[^home]

## Opening and combining data

Opening a data file replaces the current dataset and normally clears other named session variables\. The preservation option retains non\-series variables, but not the old dataset\. Spreadsheet import can select a worksheet and skip initial rows or columns\. These details matter when a workbook contains explanatory headings or several tables: opening the file is not necessarily equivalent to importing every sheet into an existing project\.[^commands]

## Observation matching

Appending data requires compatible observation information\. Where imported and existing values overlap, the existing values remain unless updating overlaps is requested\. Panel\-data additions require matching both the observational units and time periods\. This makes checking identifiers and dates an important part of migration, even when the source format itself is supported\.[^commands]

## Core and extension boundaries

Official addons are tested by the project and bundled with its Windows and macOS installers and the documented Debian and Fedora packages\. Contributed packages are moderated for plausible operation, documentation and distinct functionality, but are not installed automatically\. Some expose menu dialogs while others require commands\. An advertised method in the wider ecosystem should therefore be checked against the actual package and interface available to the user\.[^packages]

## Working alongside R

The project explicitly describes its statistical coverage as narrower than R's\. It can transfer the current dataset, launch an R session or embed R code within a gretl script\. Efficient integration uses R's shared library, with platform\-specific configuration\. This is a route for combining the tools; it does not make every R package an intrinsic part of a standalone gretl installation\.[^r]

## Licensing and platforms

gretl is distributed under the GNU GPL for Windows, macOS and Linux\. The Mac downloads distinguish Intel from native Apple Silicon builds, the latter requiring macOS 11 or newer\. Development snapshots can include both fixes and new bugs\. X\-13\-ARIMA\-SEATS and TRAMO/SEATS are separately supplied optional seasonal\-analysis programs rather than requirements for every analysis\.[^home][^mac]

## Substitution considerations

gretl is a candidate replacement for [Stata](/stata) when the required work is a documented econometric model\. DTA import helps move observations, but does not establish conversion of do\-files, reporting routines or every estimator\. The practical boundary is the specific model and its repeatable implementation, not the fact that both applications perform statistics\.[^home][^stata][^commands]

## Capabilities and substitutions

### Econometric estimation — supported

Includes regression, ARIMA, GARCH and panel\-data methods\.[^home]

Use case: Econometric regression, time\-series and panel\-data analysis · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

### Dataset import — supported

Reads common spreadsheets, Stata DTA, SPSS SAV and EViews workfiles\.[^home]

Use case: Econometric regression, time\-series and panel\-data analysis · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

### Additional statistical packages — limited

Official addons are bundled in documented distributions; contributed packages are separate and some lack graphical entry points\.[^packages]

Use case: Econometric regression, time\-series and panel\-data analysis · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

### R integration — limited

Data and scripts can be exchanged; integration depends on an accessible R installation and library configuration\.[^r]

Use case: Econometric regression, time\-series and panel\-data analysis · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

### [Substitute for Stata](/stata) — limited

Can replace Stata for specified regression, time\-series and panel\-analysis tasks; importing a DTA dataset does not establish execution of Stata scripts or complete method parity\.[^home][^commands][^stata]

Use case: Econometric regression, time\-series and panel\-data analysis · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

## References

[^home]: [gretl project overview](<https://gretl.sourceforge.net/>) — GPL licensing, estimators, scripting, file formats and distributions (vendor; retrieved 2026-10-07T15:41:17Z)

[^commands]: [gretl command reference](<https://gretl.sourceforge.net/gretl-help/cmdref.html>) — open and append: session replacement, preservation and observation matching (vendor; retrieved 2026-10-07T15:40:26Z)

[^packages]: [gretl function packages](<https://gretl.sourceforge.net/function_packages.html>) — Bundled official addons versus moderated contributed packages (vendor; retrieved 2026-10-07T15:40:55Z)

[^r]: [gretl and GNU R](<https://gretl.sourceforge.net/gretl_and_R.html>) — Data and script integration; R shared\-library configuration (vendor; retrieved 2026-10-07T15:43:42Z)

[^mac]: [gretl on macOS](<https://gretl.sourceforge.net/osx.html>) — Intel versus Apple Silicon distributions; snapshots and optional seasonal\-analysis tools (vendor; retrieved 2026-10-07T15:43:42Z)

[^stata]: [Stata features](<https://www.stata.com/features/>) — Regression, panel data, time series and scripting (vendor; retrieved 2026-10-07T15:43:49Z)

Source revision: https://substitutefor.net/entities/Q1047?revision=1095
