SPSS Statistics

SPSS Statistics

Your hub for statistical analysis, data management, and data documentation. Connect, learn, and share with your peers! 

 View Only
  • 1.  Problems with compute

    Posted Thu March 10, 2022 11:09 AM
    I have used the compute function successfully many times to add up variables for a sum. I have data that originated from Qualtrics, moved into SPSS with string variables. Used automatic recode to change the variables to the numeric format. These are dependent observations with 21 participants. Recoded to account for reverse scoring. Tried adding these 37 "pre" variables up to get a totalpre score and the same for 37 "post" variables to get a totalpost score. Variables are measured as 1 for correct answer and 0 for incorrect. There is some missing data within the 74 variables but the totals come up with ALL missing data (no totals).  Any idea what I might be doing wrong here?

    ------------------------------
    Barbara Niedz
    ------------------------------

    #SPSSStatistics


  • 2.  RE: Problems with compute

    Posted Thu March 10, 2022 11:18 AM
    Hi. Any chance you could share your data or at least the syntax, so I could see what's going on?

    I assume that you got no warnings when you ran it....?

    ------------------------------
    Rick Marcantonio
    Quality Assurance
    IBM
    ------------------------------



  • 3.  RE: Problems with compute

    Posted Thu March 10, 2022 11:24 AM
    Or did you need an EXECUTE or another procedure to realize the transformations?

    --





  • 4.  RE: Problems with compute

    Posted Fri March 11, 2022 09:34 AM
    Are you using the SUM function or addition using the "+" sign? Addition using the "+" sign will result in a missing value if any of the values you are summing together are missing. See this support page for more detail.

    ------------------------------
    Brian Joy
    ------------------------------