COMPUTE NewSalary = SUM(Salary,Raise).
COMPUTE MinValue = MIN(V1,V2,V3,V4).
COMPUTE MeanValue = MEAN(V1,V2,V3,V4).
COMPUTE NewMean = MEAN.3(V1,V2,V3,V4).
- NewSalary is
the sum of Salary plus Raise.
- MinValue is the
minimum of the values for V1 to V4.
- MeanValue is
the mean of the values for V1 to V4. Since the mean can be computed for one,
two, three, or four values, MeanValue is assigned a valid value as long as any one of the four variables
has a valid value for that case.
- In the last example above, the
.3
suffix specifies the minimum number of valid arguments
required. NewMean is the mean of
variables V1 to V4 only if at
least three of these variables have valid values. Otherwise, NewMean is system-missing for that case.