About Stata
- Stata, Stata/SE, business annual license
$1,015 USDa year
≈$1,447.09 CAD (converted from USD)
Every pick below has a free version.
- Key file formats
- .dta.do.csv.xlsx.sav
Filter alternatives
3 alternatives
ToolLicensePlatformsStatus
Top pick
1 toolThe editor’s first choice for most people switching.
1R
Rank 1: R
Best for code-based stats with the widest coverage
License: Open source
Status: Verified - DTADTA: opens and saves, partial fidelity. Through the haven package; Stata labels become labelled columns
- CSVCSV: opens and saves, full fidelity
- XLSXXLSX: opens and saves, partial fidelity. Through packages such as readxl and openxlsx
- SAVSAV: opens and saves, partial fidelity. Through the haven package
Free and GPL licensed. Stata users move to R through RStudio. Reads and writes .dta files through the haven package.
Strong
2 toolsCovers most of the same work, with trade-offs noted on each card.
2Py
Best for statistics inside a general programming language
License: Open source
Status: Active
- DTADTA: opens and saves, partial fidelity. Through pandas read_stata and to_stata
- CSVCSV: opens and saves, full fidelity
- XLSXXLSX: opens and saves, partial fidelity. Through pandas with openpyxl
- SAVSAV: opens and saves, partial fidelity. Through pyreadstat
- MATMAT: opens and saves, partial fidelity. Through scipy.io for older files and h5py for v7.3 files
Free and open source. Use pandas, statsmodels and linearmodels for the Stata workflow. Reads and writes .dta files through pandas.
3Gr
Best for point-and-click econometrics and time series
License: Open source
Status: Verified - DTADTA: opens only, partial fidelity. Imports Stata files
- CSVCSV: opens and saves, full fidelity
- XLSXXLSX: opens only, partial fidelity. Imports Excel worksheets
- SAVSAV: opens only, partial fidelity. Imports SPSS files
Free GPL software for Windows, Mac and Linux, built for econometrics. Imports Stata .dta and SPSS .sav files.
Sponsor this page: $149 for 30 days. Sponsors appear above the ranking, labeled; the ranking itself is not for sale.
Feature parity
How each alternative covers what people use Stata for. Numbers link to editor notes.
Feature parity with Stata| Feature | R | Python | gretl |
|---|
| Data |
|---|
| Data management and reshaping | YesNote 1dplyr and data.table cover reshaping and merging | YesNote 2pandas covers reshaping and merging | PartialNote 3Dataset editing and transformations; less flexible than Stata |
|---|
| Analysis |
|---|
| Regression and econometrics | YesNote 4Packages such as fixest and sandwich cover standard errors and IV | YesNote 5statsmodels and linearmodels cover regression and IV | YesNote 6Core estimators including OLS and IV |
|---|
| Panel data and time series | YesNote 7Packages such as plm and forecast | PartialNote 8linearmodels for panels and statsmodels for time series | YesNote 9Panel and time-series models, including ARIMA |
|---|
| Survey and multilevel models | YesNote 10survey and lme4 packages | PartialNote 11Mixed models in statsmodels; limited survey weighting | No |
|---|
| Output |
|---|
| Publication-quality graphs | YesNote 12ggplot2 and base graphics | YesNote 13matplotlib and seaborn | PartialNote 14Built-in plots for common needs |
|---|
| Automation |
|---|
| Do-files for reproducible scripting | YesNote 15R scripts and Quarto notebooks | YesNote 16Python scripts and Jupyter notebooks | YesNote 17Hansl scripting language |
|---|
| Interface |
|---|
| Point-and-click menus | NoNote 18Code first; GUIs such as R Commander are add-ons | No | YesNote 19Menu-driven interface |
|---|
| Parity score | 86% | 71% | 71% |
|---|
- R, Data management and reshaping: dplyr and data.table cover reshaping and merging
- Python, Data management and reshaping: pandas covers reshaping and merging
- gretl, Data management and reshaping: Dataset editing and transformations; less flexible than Stata
- R, Regression and econometrics: Packages such as fixest and sandwich cover standard errors and IV
- Python, Regression and econometrics: statsmodels and linearmodels cover regression and IV
- gretl, Regression and econometrics: Core estimators including OLS and IV
- R, Panel data and time series: Packages such as plm and forecast
- Python, Panel data and time series: linearmodels for panels and statsmodels for time series
- gretl, Panel data and time series: Panel and time-series models, including ARIMA
- R, Survey and multilevel models: survey and lme4 packages
- Python, Survey and multilevel models: Mixed models in statsmodels; limited survey weighting
- R, Publication-quality graphs: ggplot2 and base graphics
- Python, Publication-quality graphs: matplotlib and seaborn
- gretl, Publication-quality graphs: Built-in plots for common needs
- R, Do-files for reproducible scripting: R scripts and Quarto notebooks
- Python, Do-files for reproducible scripting: Python scripts and Jupyter notebooks
- gretl, Do-files for reproducible scripting: Hansl scripting language
- R, Point-and-click menus: Code first; GUIs such as R Commander are add-ons
- gretl, Point-and-click menus: Menu-driven interface
File formats
Can each alternative open and save Stata files?
Opening and saving Stata files| Format | R | Python | gretl |
|---|
| .dta | Opens and savesNote 1Through the haven package; Stata labels become labelled columnsPartial fidelity | Opens and savesNote 2Through pandas read_stata and to_stataPartial fidelity | Opens onlyNote 3Imports Stata filesPartial fidelity |
|---|
| .do | NoNote 4R cannot run Stata do-files | NoNote 5Python cannot run Stata do-files | NoNote 6Uses Hansl scripts instead of Stata do-files |
|---|
| .csv | Opens and savesFull fidelity | Opens and savesFull fidelity | Opens and savesFull fidelity |
|---|
| .xlsx | Opens and savesNote 7Through packages such as readxl and openxlsxPartial fidelity | Opens and savesNote 8Through pandas with openpyxlPartial fidelity | Opens onlyNote 9Imports Excel worksheetsPartial fidelity |
|---|
| .sav | Opens and savesNote 10Through the haven packagePartial fidelity | Opens and savesNote 11Through pyreadstatPartial fidelity | Opens onlyNote 12Imports SPSS filesPartial fidelity |
|---|
- R, .dta: Through the haven package; Stata labels become labelled columns
- Python, .dta: Through pandas read_stata and to_stata
- gretl, .dta: Imports Stata files
- R, .do: R cannot run Stata do-files
- Python, .do: Python cannot run Stata do-files
- gretl, .do: Uses Hansl scripts instead of Stata do-files
- R, .xlsx: Through packages such as readxl and openxlsx
- Python, .xlsx: Through pandas with openpyxl
- gretl, .xlsx: Imports Excel worksheets
- R, .sav: Through the haven package
- Python, .sav: Through pyreadstat
- gretl, .sav: Imports SPSS files
Switching saves about $1,015 USD / ≈$1,447 CAD (estimated from the USD price) a year. Prices checked ; ≈ means converted from USD.
Based on Stata/SE, business annual license. Price source. USD to CAD at 1.4257 as of Oct 7, 2026.
Stata is a product of StataCorp, named here for comparison only. Platforms listed for Stata: Windows, macOS, Linux.