Adding summary statistics to a categorical variable
Sometimes you may want to add a summary statistic to a categorical variable: for example, to show the mean score in a rating question. When you do this, by default the statistic is calculated on the basis of factors associated with the categories. Alternatively, you can base the calculation on a specific numeric variable.
A factor is a constant numerical value that is assigned to a category for use in statistical calculations. Factors are used when you want to base a statistic on the categories in a categorical variable rather than on a numeric variable. This is because statistics can be calculated on numeric data only and categories are not true numeric values. (Although the Data Model represents the responses to categorical questions as numeric values, these are in fact identifiers or codes and are not suitable for statistical analysis.)
These instructions describe how to add summary statistics so that they apply to all tables that use the variable. If you want to add the statistics to a specific table, use the Edit Axis dialog box instead of the Edit Variable dialog box. The steps within the dialog box are the same. See
Edit Axis dialog box for more information.
Adding a summary statistic to a categorical variable for all tables
1 In the main UNICOM Intelligence Reporter - Survey Tabulation window, select the Define tab.
2 In the Variable List, select the categorical variable.
3 From the menu, choose Variables > Edit.
This opens the Edit Variable dialog box: see
Edit Variable dialog box.
4 Select the item in front of which you want the summary statistic to appear. To add the statistic at the end, do not select anything.
5 From the menu at the top of the Edit tab, choose Insert.
This opens the Insert Item dialog box: see
Insert Item dialog box.
6 In the list of Available Items, select the summary statistic that you want to use. For example, select Mean or Standard Deviation.
7 Click Add.
8 Click OK.
This inserts the statistic into the list of items on the Edit tab and automatically assigns factors to all of the categories, including user-defined categories, in the list. A factor of 1 is assigned to the first one, a factor of 2 to the second one, etc. However, you can change the factors if necessary.
9 When you have finished inserting statistics, click OK to close the Edit Variable dialog box.
Changing the factor assigned to a category
1 After inserting a summary statistic in the Edit Variable dialog box, select the category for which you want to change the factor.
3 In the Element Properties dialog box, enter the required value in the Factor text box.
4 Click OK.
Note The changes will be applied to any existing tables that include the variable next time you populate them, provided you have not used the Edit Axis dialog box (see
Edit Axis dialog box) to specify how the variable is to appear in any of those tables.
See also