Products | Versions |
---|---|
Spotfire Statistica | 12.7 and above |
One of the automation facilities in Statistica is available via Statistica Visual Basic. When running an analytic procedure (from the Statistics or Data Mining menus) or creating a graph (from the Graphs menu), the Visual Basic code corresponding to all design specifications as well as output options selected are recorded.
To display the visual basic code:
1.Select "Create Macro" from the "Options" button drop-down list (available on any analysis or graph dialog).
Alternatively, click the Create Macro toolbar button, or select the particular analysis or graph from the Tools|Macro|Create Analysis/Graph Macro submenu.
The code can later be executed repeatedly or edited by changing options, variables, or data files and optionally adding user interfaces, etc.
Programs can also be written using the Statistica Visual Basic professional development environment featuring a convenient program editor with a powerful debugger (with breakpoints, etc.), an intuitive dialog painter, and many facilities that aid in efficient code building.
To display the SVB editor:
1. Select Home|New and select Macro from the drill-down list.
2. The macro editor will be prompted and macro tools are available under Macro.
Note that Master Macros (logs of multiple analyses) and Keyboard Macros (context sensitive recordings of sequences of keystrokes) are also available.
Also, many procedures and graphs automatically repeat the same analysis for each of a series of variables (e.g., Design of Experiments uses multiple dependent variables) or each level of a grouping variable (e.g., categorized graphs).