|Date: ||Tue, 13 Apr 1999 09:14:37 +0100|
|Reply-To: ||"email@example.com" <firstname.lastname@example.org>|
|Sender: ||"SPSSX(r) Discussion" <SPSSX-L@UGA.CC.UGA.EDU>|
|From: ||David Millar <david@ERC.IE>|
|Subject: ||Re: syntax to convert a variable|
|Content-Type: ||text/plain; charset="us-ascii"|
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