This article describes how to code or categorize a subset of responses in a text variable. Sometimes it is useful to code only some of the responses to a question (i.e., to filter the responses by some criteria, prior to dong the coding). For example, coding only the responses of people who gave a satisfaction rating of 9 or 10.
- In the Variables and Questions tab, right-click on the text variable and select Copy and Paste Variable(s) > Linked.
- Right-click on the newly-created variable and select Edit Variable.
- The Expression will contain the variable's name (e.g., q6oe). Modify this expression so that it reflects the logic you wish to apply. For example, this expression filters out all the text data other than for people with a rating of 9 or 10 on d1: if (d1 == 9 || d1 == 10) q6oe. Press OK.
- Categorize the newly-created variable. You can re-use any coding again if you decide at a later stage to code all the data.
How to Code an Open-Ended Question into a Single Response Question in Q
How to Code an Open-Ended Question into a Multiple Response Question in Q
Article is closed for comments.