Recording Case Selection Conditions and Case Weights

Case selection conditions and case weights are only recorded if they are specified as part of the specific analysis by clicking on the Select Cases or Case Weights button of the respective analysis dialog box. They will not be recorded in Analysis Macros if they are specified via the respective Tools menu options for the input data file (or if they have been specified prior to the current analysis for the respective input data file).

Note: in Statistica, case selection conditions and case weights can be specified either (a) relatively permanently for input data files and automatically stored with the files, in which case they will automatically be used by all analyses based on the input data file, or (b) they can be specified on a per-analysis basis, in which case any new (subsequent) analyses will not use those specifications. In a sense, when you specify case weights or case selection conditions to "belong" to the data file, those specifications become part of the data file just like the data (numbers) themselves; when you specify case selection conditions and case weights for a particular analysis, those specifications are only applied to the respective analysis.

To reiterate, case selection conditions and case weights are only recorded in Analysis Macros if they are specified via the respective analysis options (buttons), and regardless of whether or not they are specified for the current analysis only or as a "permanent feature" of the data file.

Changing current data file selection conditions and weights
Because case selection conditions and case weights can be recorded into Analysis Macros in the exact same manner as specified via the Analysis/Graph Case Selection Conditions and Analysis/Graph Case Weights dialog boxes (when accessed via the respective buttons of the current analysis dialog), it is possible to reset the "permanent" current data file selection conditions and weights by running an Analysis Macro. If you run an Analysis Macro that changes the case selection conditions for the current input data file, all subsequent analyses will use those specifications, and the results of those analyses will be affected accordingly.