4/5/2024 0 Comments Spss recode string to numericHowever, this throws the following error message:īy reducing the formula, I identified that the issue is that the variables are not recognised as integers but as strings. I am new to SPSS and would like to determine the average of 5 questionnaire items as follows: I suggest that you rename to have shorter names and use the question text as the variable label. A label is the same for all cases, so this would never make sense.įinally, these variable names are extremely long and rather difficult to work with. You would never use variable labels in a computation. If they are strings but the strings represent numbers, you can change the variable types in the Data Editor Variable View or use the ALTER TYPE command to make them numbers. Second, the variables need to be numeric. To use TO, the variables need to be contiguous in the file. Subject: Compute variable: Use numeric label of a variable instead of string valueįirst, if you want to sum a bunch of variables within a case, look at the sum function, which can also use TO.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |