run_analysis
Execute STATISTICA analyses by sending ordered dialog steps, then return result tables, arrays, or exported graph files.
Instructions
Run ANY STATISTICA analysis by executing an ordered list of steps against its dialog. Each step is one of: {"set": {PropertyName: value}} (set dialog properties), {"call": "MethodName", "args": [...]} (invoke a dialog method, e.g. ARIMAAndAutocorrelationFunctions), {"run": true} (execute the analysis), {"result": "Summary"} (read a result document/table after the run), {"saveGraph": "C:\out\plot.png", "result": "Graphs"} (export a graph document to an image; .png/.jpg/.emf). Results are returned as tables, arrays or document handles. Use describe_analysis to discover property and method names.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the source file. | |
| save | No | Optional destination .sta path to save the (possibly modified) input spreadsheet. | |
| sheet | No | ||
| steps | Yes | Ordered steps, e.g. [{"set":{"Variables":"2 1"}},{"run":true},{"result":"Summary"}]. | |
| attach | No | Attach to the already-running STATISTICA instance and edit it live (no new process, the app is not closed). | |
| module | Yes | Module id or name. |