doc

StataCorp
Stata Commands to Run ChatGPT, Claude, Gemini, and Grok
StataCorp's official blog provides working Python-based Stata commands that send a prompt to a major AI provider and return the answer directly in Stata's results window. If you are comfortable following copy-paste instructions, you will be able to query a model for code help without leaving Stata.
- Task
- Data & analysis
- Time
- 30 min
- Level
- intermediate
- Cost
- Needs a licence — Requires a licence your institution may or may not hold.
- Tools
- Stata, ChatGPT, Claude, Gemini
- Published
- 2025-10-07