stata_do
Run a Stata do-file and retrieve its execution log. Use for regression analysis, statistical operations, or executing Stata commands.
Instructions
Execute a Stata do-file and return the execution log. Accepts a do-file path, runs it via the configured Stata executable, and can optionally read log content only when return-code errors are detected. Use when you need to run Stata commands, perform regression or statistical analysis, or execute a do-file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dofile_path | Yes | ||
| log_file_name | No | ||
| read_log_when_error | No | ||
| is_replace_log | No | ||
| enable_smcl | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |