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 (April 1999)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 13 Apr 1999 09:14:37 +0100
Reply-To:   "david@erc.ie" <david@erc.ie>
Sender:   "SPSSX(r) Discussion" <SPSSX-L@UGA.CC.UGA.EDU>
From:   David Millar <david@ERC.IE>
Organization:   ERC
Subject:   Re: syntax to convert a variable
Comments:   To: "Daisukisan@AOL.COM" <Daisukisan@AOL.COM>
Content-Type:   text/plain; charset="us-ascii"

Dear Paige,

I've been following the replies to your problem. If you haven't already found a solution you may want to consider this. Your code creates values for the new variable depending on specific values of the old variable. eg if var1=0.1 then var2=31. Now, here is the question - do you actually have any values of 0.1 for your old variable? (I know this sounds like a really dumb question but bear with me). The values that SPSS displays for var1 may be rounded to one place of decimals but the value that it actually stores may be to more decimal places. Therefore values that you see as being 0.1 for var1 may actually be something like 0.11 or 0.09731 etc.. Therefore, when you ask SPSS to make var2 31 on the basis of var1 being 0.1 SPSS doesn't do it because it's looking for 0.1 when all it has are 0.11 or 0.09731 etc.

You can check to see if this is the case by opening your system file and clicking on a cell that has the value 0.1 (or any value really). On the top of the screen there should be a display of what's in the cell.

Hope this helps

David Millar ERC Dublin


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