Statistics

gretl

gretl is a free, open-source econometrics package that pairs a point-and-click interface with its own scripting language for regression, time-series, and panel-data work, aimed at students, teachers, and researchers who want transparent, reproducible estimation.

Visit official website ↗
✓ Software download·Open Source·Updated October 30, 2026
DeveloperAllin Cottrell and Riccardo (Jack) Lucchetti
LicenseOpen Source
File size131.0 KB
Languageen-US
Downloads10

gretl: Open-Source Econometrics for Regression and Time Series

gretl, short for GNU Regression, Econometrics and Time-series Library, is built for estimation rather than general statistics. You load a dataset, open the model dialog, and specify a dependent variable, regressors, instruments, or a time-series structure; the model window returns coefficients, standard errors, diagnostics, and test results you can extend with a single click. Behind that window sits hansl, gretl's own scripting language, which records what the menus did and lets you build loops, functions, and multi-model studies. The same program runs graphical and command-line sessions, so a classroom demonstration and a batch estimation job share one engine. Data arrives from CSV, Excel, Stata, and SPSS files, from SQLite databases, or from the sample datasets bundled with the package.

gretl is unusually transparent for a statistics program. Every estimation is written into a session log in plain script, so the full path from raw data to final table can be re-run from a single file, and results appear in a text window you can edit, save, or typeset. Graphs are generated as editable plot specifications rather than static pictures, which makes redrawing them with different labels or ranges quick. Packages from the project's own repository add extra estimators, tests, and import filters, and the program can hand data to R or Julia for work outside its scope. Users who prefer a menu-driven front end for psychology-style analyses often keep Jamovi Desktop nearby, exporting to it from gretl's CSV output.

Benefits of Using gretl

Estimation speed matters less than knowing what was estimated, and that is where gretl pulls ahead of drag-and-drop statistics tools. A regression on panel data with fixed effects, a GARCH model on returns, or a cointegration test on macro series takes a few dialog choices, and each produces diagnostics alongside the coefficients instead of leaving you to hunt for them. The script that records those choices can be saved, versioned, and pasted into a paper's appendix, which turns reproducibility from an intention into a byproduct. Teaching benefits as well: students see the menu action and the generated command at the same time, so the syntax stops feeling like a separate subject. Because gretl is free and open source, an entire cohort can install it without licensing paperwork, and its modest footprint runs comfortably on older lab machines.

gretl features

Key capabilities and highlights.

Feature 1

Menu-Driven Model Specification

Dialogs cover ordinary least squares, instrumental variables and two-stage least squares, GMM, logit and probit, tobit, and survival-style limited dependent variable models. Each window collects the variables, sample restrictions, and robust standard error options in one place before the model is estimated.

Feature 2

hansl Scripting Language

gretl's built-in language handles loops, conditionals, user-defined functions, and string processing, so a repeated estimation across many series can be automated instead of retyped. Scripts run from the GUI or in batch mode, and the same syntax drives the program's own menu commands.

Feature 3

Session Log as Reproducible Record

Every action in gretl is appended to a session script in readable commands. Save that script and the entire analysis can be replayed on a fresh copy of the data, which is exactly what a referee or a co-author needs to verify a reported coefficient.

Feature 4

Time-Series Estimation and Testing

ARIMA models, VAR and VECM systems, unit root tests, cointegration tests, and GARCH variants for volatility are all reachable from the model menu. Forecasting, impulse responses, and residual diagnostics appear in the same window as the estimates, keeping the workflow on one screen.

Feature 5

Panel Data Toolkit

Pooled, fixed-effects, random-effects, and between estimators sit alongside specification tests such as Hausman, plus options for clustered and robust standard errors. Panel datasets can be structured by unit and period inside the program, so lagged and differenced variables are generated without manual editing.

Feature 6

Matrix and Programming Environment

A matrix engine supports linear algebra directly in hansl, letting you implement an estimator that no menu offers. Scripts can also build their own dialog boxes, so a custom routine behaves like a native gretl command once it is packaged.

Feature 7

Broad Data Import and SQL Access

CSV, Excel, Stata, SPSS, and gretl's own data files load without conversion, and SQLite databases open natively with other database engines reachable through ODBC. Import filters handle delimiter and date quirks, which saves the usual round of manual cleanup before an estimation.

Feature 8

Output, Graphs, and Typesetting

Model tables export to LaTeX, RTF, CSV, or plain text, and graphs are stored as editable specifications that redraw at a different size or label set. Combined with the session log, that makes the jump from finished estimation to a formatted results table fairly short.

Old versions

Browse historical releases and previous builds.

2025c2025-11-12
2025b2025-06-05
2025a2025-03-20
2024d2024-12-12
2024c2024-10-21

Frequently asked questions

Common questions about gretl.

What is gretl used for?

gretl is used for econometric estimation and testing: regression, instrumental variables, limited dependent variables, panel models, and time-series work such as ARIMA, VAR, and GARCH, along with the diagnostic tests that accompany them.

Is gretl free to use?

Yes. It is free and open-source software, so there is no licence fee for students, teachers, or research groups, and the source code can be inspected or modified under its licence terms.

Do I need programming experience to use it?

No. Most analyses can be completed entirely through menus and dialog boxes. Scripting only becomes necessary when you want to automate a repeated task, write a custom estimator, or reproduce a study from a saved session file.

What is hansl?

hansl is the scripting language built into gretl. It supports loops, functions, matrices, and string handling, and the graphical interface generates hansl commands as you click, so the language doubles as a learning aid and an automation route.

Can gretl open Stata, Excel, or CSV files?

It can. Common formats including CSV, Excel, Stata, and SPSS load directly, its own data files open natively, and SQLite databases can be queried from inside the program, with ODBC available for other database sources.

Can I add estimators that are not built in?

Yes. Packages distributed through the project's own repository add extra estimators, tests, and import filters, and hansl's matrix engine lets you code a procedure yourself and expose it as a menu command.

Can results be exported into a paper or report?

Model output can be exported to LaTeX, RTF, CSV, or plain text, and graphs are saved as specifications you can redraw with different labels or dimensions, which suits journal submissions and teaching handouts alike.

Is it suitable for teaching econometrics?

It works well in a classroom because the generated script appears alongside each result, so students connect a menu action to the underlying command. Being free and open source also removes the licensing barrier for a whole cohort.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Software download

Download gretl

gretl is a free, open-source econometrics package that pairs a point-and-click interface with its own scripting language for regression, time-series, and panel-data work, aimed at students, teachers, and researchers who want transparent, reproducible estimation.