Look up AGGREGATE, and see the examples.
tino wrote
how can I create the sum of a variable as a new variable (I need this "variable" for computing additional indices)?
To illustrate, assume there are n=5 cases for variable x, and variable x_sum should contain for each case the sum x:
Person x x_sum
1 2 8
2 2 8
3 3 8
4 1 8
5 0 8
Many thanks for your support!
Tino
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/"When all else fails, RTFM."
PLEASE NOTE THE FOLLOWING:
1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above.
2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (
https://listserv.uga.edu/).