script-translator - Convert statistical code between languages
Translate scripts between STATA, Python, and R with line-by-line fidelity
Tags
Updated: 2026-03-23Typical Inputs
Typical Outputs
What this skill does
- read script file
- detect source language
- load mapping file
- translate code lines
- preserve variable names
- preserve logic structure
- preserve statistical estimators
- preserve standard errors
- preserve fixed effects
- preserve merge logic
- preserve sample restrictions
- preserve weighting
- preserve test statistics
- preserve plot properties
- preserve colors
- preserve axis ranges
- apply project boilerplate
- write translated script
- generate translation notes
- run translated script
Inputs
- source script file
- target language
- language pair body file
- project configuration
Outputs
- translated script file
- translation notes
- execution log
- output figure
- quality report
Requirements
- Python environment
- Stata installation
- R environment
- file system access
- shell execution
