How to Define a Variable in SPSS

The instructions and examples will help guide you through establishing different types of variables for your particular research or analysis needs. Creating a new SPSS Statistics data file consists of two stages: defining the variables and entering the data. Defining the variables involves multiple processes and requires careful planning. You will also need to do this for the data to be added. Read on to find out how.

Steps

  1. Image titled Define a Variable in SPSS Step 1
    1
    Launch IBM SPSS Statistics. The Data Editor window will open.
  2. Image titled Define a Variable in SPSS Step 2
    2
    Click the Variable View tab in the lower-left corner of the Data Editor window.
  3. Image titled Define a Variable in SPSS Step 3
    3
    Type [Name] in the first cell under the Name column, and then press the Enter key. Under the Type column, click Numeric, and then click the Ellipses button that appears next to it. The Variable Type dialog box will open.
  4. Image titled Define a Variable in SPSS Step 4
    4
    Select the String option and click the OK button.
  5. Image titled Define a Variable in SPSS Step 5
    5
    Type [Gender] in row two under the Name column, and then press the Enter key. Click the cell in row 2 under the Decimals column and change the entry to 0.
  6. Image titled Define a Variable in SPSS Step 6
    6
    Type [What is your gender?] in row 2 under the Label column and press the Tab key.
  7. Image titled Define a Variable in SPSS Step 7
    7
    Click None in row two under the Values column, and then click the Ellipses button. The Value Labels dialog box will open.
  8. Image titled Define a Variable in SPSS Step 8
    8
    Type [1] in the Value box, type [Female] in the Label box, and then click the Add button. Type [2] in the Value box, type [Male] in the Label box, and then click the Add button.
  9. Image titled Define a Variable in SPSS Step 9
    9
    Click the OK button.
  10. Image titled Define a Variable in SPSS Step 10
    10
    Type [GPA] in row three under the Name column, and then press the Enter key.
  11. Image titled Define a Variable in SPSS Step 11
    11
    Click the "Data View" tab located next to the Variable View tab.
  12. Image titled Define a Variable in SPSS Step 12
    12
    Enter the necessary data.

Things You'll Need

  • IBM SPSS Statistics


Sources and Citations

  • Original information from CalStateLA ITS - Shared with Permission

Article Info

Categories: Software