Diff for "FAQ/MeanSum" - CBU statistics Wiki
location: Diff for "FAQ/MeanSum"
Differences between revisions 3 and 6 (spanning 3 versions)
Revision 3 as of 2006-08-21 15:40:01
Size: 590
Editor: PeterWatson
Comment:
Revision 6 as of 2013-03-08 10:17:57
Size: 632
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:

== Subtracting a constant from the mean ==
Line 8: Line 11:
MEAN(A,B,…N) to obtain MEAN(A+c,B+c,…..N+c). This saves time creating new variables by using the original metrics.The RHS in the above box may be, alternatively, input into the compute window under by choosing analyze:compute in the menu. MEAN(A,B,…N) to obtain MEAN(A+c,B+c,…..N+c). This saves time creating new variables by using the original metrics.The RHS in the above box may be, alternatively, input into the compute window by choosing analyze:compute in the menu.

Subtracting a constant from the mean

Suppose we add a constant term,c, to each of N variables, A, B, C, …, N say, and wish to compute the variable mean. We can so this in SPSS using the syntax in the box

Compute newmean  =  Mean(A,B,…,N) +  c. 

This uses the compute statement and the mean function MEAN(A,B,…N) to obtain MEAN(A+c,B+c,…..N+c). This saves time creating new variables by using the original metrics.The RHS in the above box may be, alternatively, input into the compute window by choosing analyze:compute in the menu.

Variances are not effected by addition of a constant term.

None: FAQ/MeanSum (last edited 2013-03-08 10:17:57 by localhost)