QFACTOR procedure
Allows the user to decide to convert texts or variates to factors (R.W. Payne).
Options
Parameter
Description
The QFACTOR procedure provides a convenient way of converting variates or texts to factors. The variates or texts are specified by the VECTOR parameter. The MAXCATEGORY option defines the maximum number of distinct values that each VECTOR may contain if it is to be converted (default 10). The QUERY option determines whether to ask the user whether to convert each VECTOR that has no more than MAXCATEGORY categories; with the default setting, QUERY=no, they are all converted.
The PRINT option controls printed output, with settings:
Options: PRINT, MAXCATEGORY, QUERY.
Parameter: VECTOR.
Method
The QUESTION directive is used to obtain the user's decision, and the GROUPS directive is used to convert the variate or text to a factor.