|
From: | Alan Mead |
Subject: | Re: Create new variables from others (If Condistional or recode) |
Date: | Fri, 27 Oct 2017 12:41:25 -0500 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 |
It's hard to test syntax without the data so it's better to post
short syntax files and small datafiles. There was a typo (no period after the third compute statement) but even after I fix that it doesn't work. Var0001 is missing when the first DO IF doesn't fire. I am also mystified as to why; possibly DO IF is sensitive to missing values (my example had missing values, not sure if yous does). I thought it might be a PSPP bug, but the same thing happens in SPSS. But the second block works for me in both PSPP and SPSS. -Alan On 10/27/2017 12:14 PM, Betsabé Cohen
wrote:
-- Alan D. Mead, Ph.D. President, Talent Algorithms Inc. science + technology = better workers http://www.alanmead.org I've... seen things you people wouldn't believe... functions on fire in a copy of Orion. I watched C-Sharp glitter in the dark near a programmable gate. All those moments will be lost in time, like Ruby... on... Rails... Time for Pi. --"The Register" user Alister, applying the famous "Blade Runner" speech to software development |
example.sav
Description: application/spss-sav
example.sps
Description: application/spss-sps
[Prev in Thread] | Current Thread | [Next in Thread] |