Stata Results
Apps & Automationstata-resultsStata Results is an Agent Skill for apps & automation published in the brycewang-stanford/Auto-Empirical-Research-Skills repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Fetch and display stored r(), e(), and s() results from the last Stata command.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills/blob/HEAD/skills/64-tmonk-mcp-stata/skills/stata-results/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/stata-results, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Call stata_get_results(include_matrices=True, as_json=True).
Present the results in a structured format:
- r() scalars: name → value pairs (e.g., r(N), r(mean), r(sd))
- e() scalars: model-level results (e.g., e(N), e(r2), e(F))
- e() matrices: if present, display b (coefficients) and V (variance-covariance) as formatted tables
- s() macros: string results if any
If no results are stored (empty response), tell the user to run a Stata command first (e.g., regress, summarize, ttest).
If the user needs Mata state, note they can ask you to call stata_get_results(include_mata=True).