1. Home
  2. Qualified identifier

Qualified identifier

These may occur in a list of identifiers to define subsets of the values of a data structure¬†(i.e substructures). The form is “identifier $ qualifier“, where the qualifier is a sequence of identifier lists enclosed in square brackets. For factors, variates, and texts, the qualifier has a single list, each element of which defines a subset of the vector concerned. For matrices there are two lists running in parallel, one for each dimension. For a symmetric matrix, there can be either one or two lists, depending on whether or not its two dimensions are to be subset in the same way; one list forms a symmetric matrix, and two lists forms a rectangular matrix. For a diagonal matrix there is a single list. Tables cannot be qualified. The elements of the qualifier lists can be scalars, numbers, variates, quoted strings, or texts. The set of units defined by an element in the qualification list is built up, by taking its values one at a time. Positive numbers (or texts or strings) add units to the set, while negative numbers delete the corresponding units from the set (if already there). A missing value can be used to include all the units, and one of these will be included implicitly at the start of the qualification list if the first element of the list is negative. More details, and examples, are given in Section 4.1.6 of the Guide to Syntax and Data Management. (The Guides can be accessed from the Genstat Guides option of the Help menu on the Genstat menu bar, and the examples can be run from the Example Programs menu.)

Updated on January 12, 2022

Was this article helpful?