R: HOW TO CALCULATE A SUM OF COLUMN IN SPSS USING SYNTAX ?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

R: HOW TO CALCULATE A SUM OF COLUMN IN SPSS USING SYNTAX ?

Ubos

Thank you very much Bruce!

 

Sergio  Rivaroli
Università di Bologna
Dipartimento di Scienze Agrarie (DipSA)
viale G.Fanin 50 - 40127 Bologna

tel. +39 051 2096136 - fax. +39 051 2096105

Skype: srivarol

 

 

P Please think about the environment before printing this e-mail. Thank you!

 

Da: Bruce Weaver [via SPSSX Discussion] [mailto:ml-node+[hidden email]]
Inviato: martedì 2 aprile 2013 16:20
A: Sergio Rivaroli
Oggetto: Re: HOW TO CALCULATE A SUM OF COLUMN IN SPSS USING SYNTAX ?

 

Look up AGGREGATE.  Pay attention to the SUM function and the ADDVARIABLES mode.

Ubos wrote

How can I calculate the total of a variable in SPSS using syntax? For example, calculating for each observation the variable Y as the sum of the column X (SEE EXAMPLE BELOW)

  XY
102
202
312
412

Thank you very much indeed for all contributors.

--
Bruce Weaver
[hidden email]
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

 


If you reply to this email, your message will be added to the discussion below:

http://spssx-discussion.1045642.n5.nabble.com/HOW-TO-CALCULATE-A-SUM-OF-COLUMN-IN-SPSS-USING-SYNTAX-tp5719231p5719236.html

To unsubscribe from HOW TO CALCULATE A SUM OF COLUMN IN SPSS USING SYNTAX ?, click here.
NAML