Including a python function in a Stata do-file

Including a python function in a Stata do-file When programming Stata, it is, in some cases, necessary to call an ado file from within a do file, for example in order to calculate p-values and confidence intervals with the information from an estimation command. An alternative can then be to include a python function in… Continue reading Including a python function in a Stata do-file

Stata and SQLite

Stata and SQLite For those familiar with SQL, Stata’s lack of SQL support (apart from ODBC) can be perceived as a problem. However, Stata’s integration with Python offers a solution. Here are examples with one Stata script for exporting data to an SQLite database and another one for querying an existing SQLite database. In each… Continue reading Stata and SQLite