Restricting a base using an expression
sample script file: SpecialElements.mrs
This example script is based on the Museum sample data set. See
Running the sample table scripts for information on running the example scripts.
base('gender={Male}')
This example uses an expression to add a restriction to the base element so that it includes responses only where the respondent is male.
Here is a table that has this axis on the side:
To exclude categories in a categorical variable from the calculation of the base, you can also use the
IncludeInBase element property. For more information, see
Excluding categories from the base.
See also