Date: Wed, 31 Aug 2005 14:15:06 -0400
Reply-To: Martin Sherman <MSherman@loyola.edu>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Martin Sherman <MSherman@loyola.edu>
Subject: how to create a repetitive compute over a series of variables.
Content-Type: text/plain; charset=US-ASCII
Dear list, I have the following variables that I want to do the
following with.
compute a=(na1*ma1 + na2*ma2)/(na1 + na2).
compute b =(nb1*mb1 + nb2*mb2)/(nb1 + nb2).
compute c =(nc1*mc1 + nc2*mc2)/(nc1 + nc2).
compute d =(nd1*md1 + nd2*md2)/(nd1 + nd2).
etc.
na1 ma1 na2 ma2 nb1 mb1 nb2 mb2 nc1 mc1 nc2 mc2 nd1 md1 nd2 md2 etc.
Suggestions appreciated. thanks
Martin Sherman
|