gretl Free econometrics software with graphical tools, hansl scripting and time-series and panel-data methods.
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]
Contents 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]
References gretl project overview GPL licensing, estimators, scripting, file formats and distributions
vendor · retrieved 2026-10-07 gretl command reference open and append: session replacement, preservation and observation matching
vendor · retrieved 2026-10-07 gretl function packages Bundled official addons versus moderated contributed packages
vendor · retrieved 2026-10-07 gretl and GNU R Data and script integration; R shared-library configuration
vendor · retrieved 2026-10-07 gretl on macOS Intel versus Apple Silicon distributions; snapshots and optional seasonal-analysis tools
vendor · retrieved 2026-10-07 Stata features Regression, panel data, time series and scripting
vendor · retrieved 2026-10-07 Also included: 4 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.