How can I record my analysis in an SVB program?
There are three categories of macros that can be automatically created as you run Statistica:
- Analysis Macros,
- Master Macros (logs of multiple analyses), and
- Keyboard Macros.
All three follow the identical syntax and can be modified at a later time, but because of the different ways in which each of them is created, they offer distinctive advantages and disadvantages for specific applications (for details, see also What exactly is recorded in analysis macros?, and What exactly is recorded in master macros?).
Also, your choice of datafiles, as well as case selection conditions and the weight variable, are recorded as long as those options are selected in the analysis dialog (i.e., via the
button menu and not from the File menu or the status bar). One such "stand alone" macro is created for each analysis and these macros are not "put together" automatically by Statistica (in fact they cannot be "mechanically" combined without some editing since each of them represents a stand-alone program that starts with the appropriate declarations, etc.).
The most common application of the Master Macro would be to start Statistica, start the Master Macro recording by selecting Start Recording Log of Analyses (Master Macro) from the Tools - Macro menu, and then continue with the analyses. For example, you can compute descriptive statistics, perform some multiple regression analyses, make several histograms and scatterplots, etc. Note that during the analysis, you will see the floating Record toolbar to remind you that you are currently recording a Master Macro.

Finally, you stop the recording by either clicking the stop button
on the floating Record toolbar (see above) or by selecting Stop Recording from the Tools - Macro menu. At that point, the Visual Basic program that represents all actions performed or selections made during the Master Macro recording will be transferred into a Statistica Visual Basic editor window. When you run this macro "as is," the exact same analyses will be repeated (with some exceptions resulting from the logic of creating reusable programs from sequences of interactive operations performed by the user, described below).
When you stop the recording by either clicking the stop button on the floating Record toolbar (see above) or by selecting Stop Recording from the Tools - Macro menu, a Statistica Visual Basic editor window will open with typically a very simple program containing a single SendKeys command with symbols that represent all the different keystrokes you performed during the recording session.