In Assisted mode, you use a simple interface to build up your custom variable. This interface is easy to use, while allowing you to create fairly sophisticated variables. However, if you need to create even more more complex variables, you can do so using askiascript in script mode.
Suppose we want to rate a new closed variable, bases on an existing question called Age. We need to create the categories in our new variable, and, for each one, define the appropriate criteria (e.g. we might combine two categories from the original question into a single category in our new one). We might set up our variable as follows:
Note that we have the responses on the left, and on the right, we are viewing the details of the first one: it stipulates that all respondents who answered less than 24 or 25-34 in the variable Age will be included in our first response, hence the label we have given our response, 18-34.
Suppose we want to specify respondents who gave a value greater than 5 at the question Department. In our example, we have selected the question Department, then greater. Finally, we have entered the value 5:
If you are creating a Closed variable, you need to define each response in your new variable. These are shown in the left-hand pane (initially, there will be none, until you add some). You can change the order of the responses simply by dragging and dropping them. To select a response, simply click it.
In the left-hand pane, the following controls are available:
| Command name | Description |
|---|---|
|
Create a new response
|
Adds a new response to the list. |
|
Remove response
|
Deletes the selected response. |
|
Rename response
|
Allows you to type a new name for the selected response. |
To define the details of a response, select it. Then, in the right-hand pane, define your condition that determines what data is included in the response.
If you are creating a Numeric variable, you do not need to define a response list, so you simply need to define one or more conditions which determine the value of the question.
The process of defining a condition is the same for closed or numeric variables. To define a condition, first select the question on which you want to base it. Then, select an operator which determines what the respondent must have selected in order to satisfy the condition. Finally, select one or more responses from the source question.
The available operators depend upon the type of the question you select in your condition. For closed questions, they are:
At least one: At least one of the specified responses must have been selected by the respondent. It does not matter is he/she selected any responses outside of those specified.
None: None of the specified responses must have been selected by the respondent. It does not matter is he/she selected any responses outside of those specified.
At least one and no other: At least one of the specified responses must have been selected by the respondent, and he/she must not have selected any responses outside of those specified.
All and no other: All of the specified responses must have been selected by the respondent, and he/she must not have selected any responses outside of those specified.
For example, the following condition is true if the respondent is less than 35 years old:
For Numeric questions, the available operators are:
Less: The condition is true if the respondent's answer was less than the value you specified.Equal or less: The condition is true if the respondent's answer was equal to or less than the value you specified.Greater: The condition is true if the respondent's answer was greater than the value you specified.Equal or greater: The condition is true if the respondent's answer was equal to or greater than the value you specified.Equal: The condition is true if the respondent's answer was equal to the value you specified.Different: The condition is true if the respondent's answer was different from (i.e. not equal to) the value you specified.Between: The condition is true if the respondent's answer was between the two values you specified (e.g. if you entered 5 and 10, then the condition is true if the respondent answered 5, 6, 7, 8, 9 or 10).Out of: The condition is true if the respondent's answer was outside of the two values you specified (e.g. if you entered 5 and 10, then the condition is true if the respondent gave an answer less than 5 or greater than 10).Don't know: The condition is true if the respondent answered don't know.Your variable's definition can consist of several conditions. To add another condition, click +:
.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy8xMTAwLzE5MDcvY2tmaW5kZXIvaW1hZ2VzL2ljbi1hZGQtY29uZC1ub3JtYWwoMSkucG5nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzY3MzI0NjQ3fX19XX0_&Signature=rlADywfU5SFy-FEgPFbxvvdHzulFddZNJVq--6zLx8uAu6z5oW8Usypzwu5zaqw2Ynd3CLVxq33alEarhkQyCqqjzu30zK6JMpIrzsvNL4JevjsN9QMVwPEMOOxqo-2EVB1Gsv7iQQJU1bootCdJJSBZx31HlFBQ57hL9iAmIPB6L7U4ym-9cKSiHMcrtgHqQYCs1Pi7xoptdyPYX3rB3eUF0yd81uoGdm~ob5Y3YjACf~RSzKvXzKuUeUYXWzFLn7DsFq5cSBh7NwDD-gDIwADbfy7Gj2ujGdNdtY-Brzi-V7SE6PEIoykt6g~3pFa3pVoOwUcF8RPbdK~f22U8YA__&Key-Pair-Id=K2TK3EG287XSFC)
You can define the relationship between each of these conditions (e.g. with two conditions, they might both have to be true, or only one of them may have to be true). Select the appropriate operator between the two conditions:
AND: Both conditions must be true.OR: Only one of the conditions must be true.For example, the following condition is true if the respondent is aged 25-34 or 35-49 (in other words, if the respondent is aged 25-49):
To remove a condition, click - beneath it:
.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy8xMTAwLzE5MDcvY2tmaW5kZXIvaW1hZ2VzL2ljbi1yZW1vdmUtY29uZC1ub3JtYWwoMSkucG5nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzY3MzI0NjQ3fX19XX0_&Signature=hS7O62tB9d6rtD2JckH8WVJLfYI46Ux3pTDNbzKY1RHdWPYuH3bvNOwk0rfuCXr2~0LYYoUs9tfgFwBt3KVBYF65vBoV~HMHkurKFuZgW3cVPhcFhR4T7TDvADMNrZqPoH45X1ZYTBuYgqIzxcNBKtkj7M-7W5SRCSSaxdKnwqktPcVzrR-X7tB0~R5v0-1cZwlxU0vsG40Yhx2FKYI-UVL-AaEMajqAkLbSKXgzl61qLDSw9wa2pcUrf3XwPzGT4m5KTaPnLxu-Y2G0AKY~ySYZm0kuVdnJzJJQhdRotmVvBBRX18MmZk8DH~eDlteyyc6bRzG51UwikKeJY2RV7Q__&Key-Pair-Id=K2TK3EG287XSFC)
You can also create sub-conditions that combine to make conditions. To add a sub-condition, click + on the same row as the condition:
.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy8xMTAwLzE5MDcvY2tmaW5kZXIvaW1hZ2VzL2ljbi1hZGQtY29uZC1ub3JtYWwoMSkucG5nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzY3MzI0NjQ3fX19XX0_&Signature=rlADywfU5SFy-FEgPFbxvvdHzulFddZNJVq--6zLx8uAu6z5oW8Usypzwu5zaqw2Ynd3CLVxq33alEarhkQyCqqjzu30zK6JMpIrzsvNL4JevjsN9QMVwPEMOOxqo-2EVB1Gsv7iQQJU1bootCdJJSBZx31HlFBQ57hL9iAmIPB6L7U4ym-9cKSiHMcrtgHqQYCs1Pi7xoptdyPYX3rB3eUF0yd81uoGdm~ob5Y3YjACf~RSzKvXzKuUeUYXWzFLn7DsFq5cSBh7NwDD-gDIwADbfy7Gj2ujGdNdtY-Brzi-V7SE6PEIoykt6g~3pFa3pVoOwUcF8RPbdK~f22U8YA__&Key-Pair-Id=K2TK3EG287XSFC)
To remove it, click - on the same row as the sub-condition:
.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy8xMTAwLzE5MDcvY2tmaW5kZXIvaW1hZ2VzL2ljbi1yZW1vdmUtY29uZC1ub3JtYWwoMSkucG5nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzY3MzI0NjQ3fX19XX0_&Signature=hS7O62tB9d6rtD2JckH8WVJLfYI46Ux3pTDNbzKY1RHdWPYuH3bvNOwk0rfuCXr2~0LYYoUs9tfgFwBt3KVBYF65vBoV~HMHkurKFuZgW3cVPhcFhR4T7TDvADMNrZqPoH45X1ZYTBuYgqIzxcNBKtkj7M-7W5SRCSSaxdKnwqktPcVzrR-X7tB0~R5v0-1cZwlxU0vsG40Yhx2FKYI-UVL-AaEMajqAkLbSKXgzl61qLDSw9wa2pcUrf3XwPzGT4m5KTaPnLxu-Y2G0AKY~ySYZm0kuVdnJzJJQhdRotmVvBBRX18MmZk8DH~eDlteyyc6bRzG51UwikKeJY2RV7Q__&Key-Pair-Id=K2TK3EG287XSFC)
As with conditions, you can control how two sub-conditions combine by selecting AND or OR.