How to convert string variables into numeric types in SPSS - Methods to convert string variables into numeric types

Time: 2022-03-13Source: Game guideAuthor: xzzj

Many people don’t know how to convert string variables into numeric types in SPSS? The article brought to you today is about the method of converting string variables into numeric types in SPSS. If you still don’t know, let’s learn it with the editor.

Step 1: Open spss, enter two columns of data, the second column is a string representing gender (as shown in the picture).


Step 2: Click [Convert]-[Recode to different variables] (as shown in the picture).


Step 3: Select the gender column string variable, set the name and label of the new variable, and click [Old Value and New Value] (as shown in the figure).


Step 4: Set the old value of male to 1 and the new value of female to 0, click [Continue] (as shown in the picture).



Step 5: Click [OK] in the conversion window and return to the chart to see the converted numerical variable (as shown in the figure).



The above is the entire content of how to convert string variables into numerical types in SPSS brought to you by the editor. I hope it can help you.

Related articles更多>>

Popular recommendations