LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 2010)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 16 Jun 2010 21:36:12 -0700
Reply-To:   Khaing Soe <khsoe1@yahoo.com>
Sender:   "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:   Khaing Soe <khsoe1@yahoo.com>
Subject:   what does this error information mean?
In-Reply-To:   <28905623.post@talk.nabble.com>
Content-Type:   multipart/alternative;

Dear Listers, To perform computing task -  summation of variables var 1a + var1b to var 10a + var 10b followed by dividing the result with 4. The follwing code was used and not worked. COMPUTE  consumptionfood = ((HE1C+HE1D) TO (HE10C+HE10D))*4. VARIABLE LABELS consumptionfood 'Monthly Consumption Expenditure for Food'. COMPUTE consumptionnf =( (HE11B+HE11C) TO (HE15B +HE15C)) + ( ( ( HE16B+HE16C) TO (HE21B + HE21C) ) / 12). VARIABLE LABELS consumptionnf 'Monthly Consumption Expenditure for Non Food'. COMPUTE consumptiontotal= consumptionfood + consumptionnf. VARIABLE LABELS consumptiontotal ' Monthly Consumption Expenditure'. EXECUTE . The error mesage says TO key word is not appropriate other than SUM and MEAN.What should be used instead? or where am I wrong? Please advise. Thanks, Khaing Soe ________________________________


[text/html]


Back to: Top of message | Previous page | Main SPSSX-L page