CREATE MATERIAL CATEGORICAL FROM <text> command for open ends
The CREATE MATERIAL CATEGORICAL FROM <text> command allows you to apply a taxonomy to a text (open-ended) variable. Crunch reads each response, classifies it into a category of the taxonomy and saves the result as a new variable. This command gives each response exactly one category. Use this command when an answer should only count once.
The taxonomy can be defined with the DEFINE TAXONOMY command earlier in the same script, or in a previous one, or one created in Crunch UI. The taxonomy must belong to the same project (folder) as the dataset.
Important to remember:
- The input variable must be a text variable.
- The output alias must not exist in the dataset yet.
CREATE MATERIAL CATEGORICAL FROM <text variable alias> USING "taxonomy name"
AS "alias for output variable"
TITLE "title for output variable";Example
CREATE MATERIAL CATEGORICAL FROM <most_important_issue> USING "Created from most_important (2)"
AS "most_important_cat"
TITLE "Most Important Issues (Cat.)";The categorical variable has one category per category of the taxonomy, plus:
- Unclassified – responses that don't match any category of the taxonomy.
- No data – cases with no responses (missing).