Skip to content

[Proposal] Migration notes for Stata and MATLAB users #346

Open

Description

@mmcky

Spun out of #50, which closes as not planned as a full "Python for Econometrics and Machine Learning" series. One part of it is worth keeping: the Python for Stata Users material.

What already exists

The Stata material. lecture-econometrics-machine-learning/lectures/stata/ holds seven lectures, roughly 50 KB — the substantial ones being python-integrated.md (25 KB) and python-files.md (10 KB). It came out of the RSIT workshop at Uni Tübingen in 2021, and covers two workflows: using Python inside Stata, and driving Stata from Python via files.

The cheatsheet. cheatsheets.quantecon.org is a MATLAB–Python–Julia side-by-side syntax table (repo QuantEcon.cheatsheet, last pushed November 2023). It covers MATLAB but not Stata, and it is a syntax lookup rather than migration guidance — nothing there explains how to move a workflow across.

So the org has a syntax table for MATLAB users, workshop material for Stata users, and no prose migration guidance for either.

Why the Stata material needs work before reuse

It is written against Stata 16 and carries an unresolved TODO in its own source, in lectures/stata/python.md:

To Do — @mmcky need to update for Stata17 with improvements to: 1. jupyter interface 2. pystata

Stata 17 shipped in 2021 and brought exactly the two things that TODO names. Current Stata is 19. So the material is three major versions behind on the specific features it is about. python-setup.md likewise assumes Stata 16, and its Apple Silicon note cites a November 2020 blog post.

Proposed shape

A short set of migration notes for users arriving from another package, covering Stata and MATLAB: how the workflow maps rather than just the syntax; the current integration paths (pystata, the Jupyter interface and sfi for Stata, the existing cheatsheet for MATLAB); and where to go next in the lecture series.

Open questions: whether to host this by extending QuantEcon.cheatsheet — already the cross-language home, already covering MATLAB — or as a new small publication; whether MATLAB needs prose notes at all or the cheatsheet suffices, which would make this Stata-only; and whether the Stata material is worth updating in place or rewriting against Stata 19.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions