{"schemaVersion":"1.0","record":{"label":"gretl","description":"Free econometrics software with graphical tools, hansl scripting and time-series and panel-data methods.","aliases":["Gnu Regression, Econometrics and Time-series Library"],"kind":"software","website":"https://gretl.sourceforge.net/","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.","license":"Free and open source under the GNU General Public License","lifecycle":"active","example":false,"features":[{"name":"Econometric estimation","status":"supported","detail":"Includes regression, ARIMA, GARCH and panel-data methods.","useCase":"Econometric regression, time-series and panel-data analysis","platforms":["Windows","macOS","Linux"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://gretl.sourceforge.net/","locator":"GPL licensing, estimators, scripting, file formats and distributions","retrievedAt":"2026-10-07T15:41:17Z","kind":"vendor"}]},{"name":"Dataset import","status":"supported","detail":"Reads common spreadsheets, Stata DTA, SPSS SAV and EViews workfiles.","useCase":"Econometric regression, time-series and panel-data analysis","platforms":["Windows","macOS","Linux"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://gretl.sourceforge.net/","locator":"GPL licensing, estimators, scripting, file formats and distributions","retrievedAt":"2026-10-07T15:41:17Z","kind":"vendor"}]},{"name":"Additional statistical packages","status":"limited","detail":"Official addons are bundled in documented distributions; contributed packages are separate and some lack graphical entry points.","useCase":"Econometric regression, time-series and panel-data analysis","platforms":["Windows","macOS","Linux"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://gretl.sourceforge.net/function_packages.html","locator":"Bundled official addons versus moderated contributed packages","retrievedAt":"2026-10-07T15:40:55Z","kind":"vendor"}]},{"name":"R integration","status":"limited","detail":"Data and scripts can be exchanged; integration depends on an accessible R installation and library configuration.","useCase":"Econometric regression, time-series and panel-data analysis","platforms":["Windows","macOS","Linux"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://gretl.sourceforge.net/gretl_and_R.html","locator":"Data and script integration; R shared-library configuration","retrievedAt":"2026-10-07T15:43:42Z","kind":"vendor"}]}],"alternatives":[],"slug":"gretl","draftAlternatives":[{"targetSlug":"stata","status":"limited","detail":"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.","useCase":"Econometric regression, time-series and panel-data analysis","platforms":["Windows","macOS","Linux"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://gretl.sourceforge.net/","locator":"GPL licensing, estimators, scripting, file formats and distributions","retrievedAt":"2026-10-07T15:41:17Z","kind":"vendor"},{"url":"https://www.stata.com/features/","locator":"Regression, panel data, time series and scripting","retrievedAt":"2026-10-07T15:43:49Z","kind":"vendor"},{"url":"https://gretl.sourceforge.net/gretl-help/cmdref.html","locator":"open and append: session replacement, preservation and observation matching","retrievedAt":"2026-10-07T15:40:26Z","kind":"vendor"}]}],"evidence":[{"url":"https://gretl.sourceforge.net/","locator":"GPL licensing, estimators, scripting, file formats and distributions","retrievedAt":"2026-10-07T15:41:17Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://gretl.sourceforge.net/","locator":"GPL licensing, estimators, scripting, file formats and distributions","retrievedAt":"2026-10-07T15:41:17Z","id":"home","title":"gretl project overview","kind":"vendor"},{"url":"https://gretl.sourceforge.net/gretl-help/cmdref.html","locator":"open and append: session replacement, preservation and observation matching","retrievedAt":"2026-10-07T15:40:26Z","id":"commands","title":"gretl command reference","kind":"vendor"},{"url":"https://gretl.sourceforge.net/function_packages.html","locator":"Bundled official addons versus moderated contributed packages","retrievedAt":"2026-10-07T15:40:55Z","id":"packages","title":"gretl function packages","kind":"vendor"},{"url":"https://gretl.sourceforge.net/gretl_and_R.html","locator":"Data and script integration; R shared-library configuration","retrievedAt":"2026-10-07T15:43:42Z","id":"r","title":"gretl and GNU R","kind":"vendor"},{"url":"https://gretl.sourceforge.net/osx.html","locator":"Intel versus Apple Silicon distributions; snapshots and optional seasonal-analysis tools","retrievedAt":"2026-10-07T15:43:42Z","id":"mac","title":"gretl on macOS","kind":"vendor"},{"url":"https://www.stata.com/features/","locator":"Regression, panel data, time series and scripting","retrievedAt":"2026-10-07T15:43:49Z","id":"stata","title":"Stata features","kind":"vendor"}],"overviewCitations":["home"],"licenseCitations":["home"],"sections":[{"id":"workflow","heading":"Modeling and reproducibility","paragraphs":[{"id":"workflow-detail","content":[{"text":"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."}],"citations":["home"]}]},{"id":"import","heading":"Opening and combining data","paragraphs":[{"id":"import-detail","content":[{"text":"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."}],"citations":["commands"]}]},{"id":"matching","heading":"Observation matching","paragraphs":[{"id":"matching-detail","content":[{"text":"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."}],"citations":["commands"]}]},{"id":"extensions","heading":"Core and extension boundaries","paragraphs":[{"id":"extensions-detail","content":[{"text":"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."}],"citations":["packages"]}]},{"id":"integration","heading":"Working alongside R","paragraphs":[{"id":"integration-detail","content":[{"text":"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."}],"citations":["r"]}]},{"id":"availability","heading":"Licensing and platforms","paragraphs":[{"id":"availability-detail","content":[{"text":"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."}],"citations":["home","mac"]}]},{"id":"substitution","heading":"Substitution considerations","paragraphs":[{"id":"substitution-detail","content":[{"text":"gretl is a candidate replacement for "},{"text":"Stata","targetSlug":"stata"},{"text":" 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."}],"citations":["home","stata","commands"]}]}]},"id":"Q1047","revision":1095,"updatedAt":"2026-10-13T20:02:18Z","sourceUrl":"https://substitutefor.net/entities/Q1047?revision=1095"}}