Missing values for a string variable

Missing values for string variables are handled similarly to the missing values for numeric variables. However, unlike numeric variables, empty fields in string variables are not designated as system-missing. Rather, they are interpreted as an empty string.

  1. In the Variables tab click the sex variable's Missing values cell value.
  2. Click Enable to enable the specification of missing values.
  3. Click Add discrete value and type NR in the Value field.
  4. Click Apply.

    Missing values for string variables are case sensitive. So, a value of nr is not treated as a missing value. Now you can add a label for the missing value.

  5. Click the sex variable's Value labels cell value.
  6. Click Add value label, type NR in the Value field, and type No Response in the Label field.
  7. Click Apply to add this label to your data file.