Size: 626
Comment:
|
Size: 692
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
== Summing partially missing cases in SPSS == |
|
Line 3: | Line 6: |
To sum over cases with at least x complete variable values in SPSS we use sum.x. Similarly to obtain the mean for cases, with at least x complete variables values, we use mean.x. e.g. | To sum over cases, with at least x complete variable values in SPSS, we use the function, sum.x. Similarly to obtain the mean for cases, with at least x complete variable values, we use mean.x. e.g. |
Summing partially missing cases in SPSS
The default for obtaining sums and means in SPSS is to work them out only for cases with complete data.
To sum over cases, with at least x complete variable values in SPSS, we use the function, sum.x. Similarly to obtain the mean for cases, with at least x complete variable values, we use mean.x. e.g.
compute scoresum = sum.3(a,b,c). compute scoremn = mean.2(a,b,c). exe.
scoresum will return missing for cases with <3 non-missing values. Ie any non-missing a, b and c. scoremn will return missing for cases with <2 non-missing values, ie having two or three missing values of any of variables a or b or c.