substitutefor

software · Q1047

gretl

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

Suggest a correction

Overview

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.[1]

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.[1]

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.[2]

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.[2]

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.[3]

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.[4]

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.[1][5]

Substitution considerations

gretl is a candidate replacement for 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.[1][2][6]

Capabilities & limitations

Econometric estimation

supported

Includes regression, ARIMA, GARCH and panel-data methods.[1]

Econometric regression, time-series and panel-data analysis · Windows, macOS, Linux · Version, build and integration requirements apply

1 source · check evidence
https://gretl.sourceforge.net/

GPL licensing, estimators, scripting, file formats and distributions

vendor · checked 2026-10-07

Dataset import

supported

Reads common spreadsheets, Stata DTA, SPSS SAV and EViews workfiles.[1]

Econometric regression, time-series and panel-data analysis · Windows, macOS, Linux · Version, build and integration requirements apply

1 source · check evidence
https://gretl.sourceforge.net/

GPL licensing, estimators, scripting, file formats and distributions

vendor · checked 2026-10-07

Additional statistical packages

limited

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

Econometric regression, time-series and panel-data analysis · Windows, macOS, Linux · Version, build and integration requirements apply

1 source · check evidence
https://gretl.sourceforge.net/function_packages.html

Bundled official addons versus moderated contributed packages

vendor · checked 2026-10-07

R integration

limited

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

Econometric regression, time-series and panel-data analysis · Windows, macOS, Linux · Version, build and integration requirements apply

1 source · check evidence
https://gretl.sourceforge.net/gretl_and_R.html

Data and script integration; R shared-library configuration

vendor · checked 2026-10-07

Can substitute for

These are products or services this entry can replace. Check the task and limitations for each comparison.

Stata for Econometric regression, time-series and panel-data analysis

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.[1][2][6]

Windows, macOS, Linux · Version, build and integration requirements apply

References

  1. gretl project overview

    GPL licensing, estimators, scripting, file formats and distributions

    vendor · retrieved 2026-10-07
  2. gretl command reference

    open and append: session replacement, preservation and observation matching

    vendor · retrieved 2026-10-07
  3. gretl function packages

    Bundled official addons versus moderated contributed packages

    vendor · retrieved 2026-10-07
  4. gretl and GNU R

    Data and script integration; R shared-library configuration

    vendor · retrieved 2026-10-07
  5. gretl on macOS

    Intel versus Apple Silicon distributions; snapshots and optional seasonal-analysis tools

    vendor · retrieved 2026-10-07
  6. Stata features

    Regression, panel data, time series and scripting

    vendor · retrieved 2026-10-07

Discussion & disputes

Ask about unclear claims or explain a concern with supporting sources. If you have a specific fix, suggest a correction.

No discussion yet.

Sign in with an active account to join the discussion.

Revision history

Open a revision to read an earlier version of this article.

RevisionTimestampEdit summary
10952026-10-13 20:02:18/* wbeditentity-create-item:0| */ sf:43dec0c8-cf00-4376-9119-2060ad7e380d:v1 | Adds gretl with dataset-versus-session distinctions, observation matching, optional function packages and R integration requirements. | attribution: /proposals/43dec0c8-cf00-4376-9119-2060ad7e380d