Working with Variables in SPSS Statistics
In SPSS Statistics, you need to define your variables, which occurs in the Variables View. To access the Variable View you need to click the Variables View tab as shown below:
Published with written permission from SPSS Statistics, IBM Corporation.
In this Variable View, you can adjust the properties of each of your variables under 10 categories: Name, Type, Width, Decimals, Label, Values, Missing, Columns, Align and Measure.
To change the name of a column (variable) in the Data View sheet, click in the appropriate cell and type in the new name. The names in this column must not start with a number. They also cannot contain special characters such as / * $, space etc. You will be given an error message if your name is in illegal format.
To define the type of data contained in the column (e.g., characters, strings, numbers, etc.), click on the appropriate row in the Type column.
You can alter the number of digits displayed in the column by clicking in the appropriate Width cell.
You can alter the number of digits after the decimal place by clicking in the appropriate Width cell.
Click on the appropriate cell in the Labels column to give a long description, which will help you to understand the variable you are referring to.
You can give a text label for category codes by clicking on the appropriate cell in the column values. Default is None.
First, click on the "None" cell box and then on the button, as show in the diagram below:
Published with written permission from SPSS Statistics, IBM Corporation.
In the -Value Labels-, enter the numeric code value "1" in the text box, Value:. This value corresponds to the group representing "Males", so enter "Males" in the Label: box.
Published with written permission from SPSS Statistics, IBM Corporation.
Click on the button.