11/29/2023 0 Comments Spss code if syntax![]() There are two important caveats to keep in mind when using the quicker syntax.įirst, variables need to be arranged side-by-side in columns in your database for the “TO” command to work properly. So, this would create one new variable “vartotal” which would be the average of all 10 items. COMPUTE vartotal = (var1 + var2 + var3 + var4 + var5 + var6 + var7 + var8 + var9 + var10) / 10. I used to calculate scale totals using the following SPSS syntax: In particular, I’ll often want to calculate an average of all ten items to use in statistical analyses. For example, I might ask participants to answer ten different questions, responding to each question using a scale of 1 (strongly disagree) to 5 (strongly agree). I often need to calculate a total score for questionnaires with multiple items. Here are four useful tips for writing shorter, more efficient SPSS syntax.ġ.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |