|
From: | Alan Mead |
Subject: | Re: Selecting cases using the "IF" Function |
Date: | Wed, 18 Jan 2017 11:10:03 -0600 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 |
As Dr. Water says, syntax is a solution. The steps would be to (1)
paste the desired analysis and then (2) edit the syntax to insert
the "IF" statement above it. You also need to decide if you want to "permanently" delete the non-selected cases or not. If I have a long series of analyses, I might select cases (say valid cases) and save them (or use a filter). But Hollenbach describes analyzing subsets of the dataset and in that case I often find the temporary command to be helpful. The syntax for each analysis would look like this: temporary. select if( region = 1 or (region=1 and id=3)). freq ... You would highlight all three statements and run them. The "temporary" command causes the selection to be in effect only for the next analysis. You repeat the "temporary" and "select if" for each analysis (or, again, use a filter). BTW, I honestly think just typing the syntax of the "select if" is easier than using the GUI. -Alan On 1/18/2017 9:53 AM, Aj Hollenbach
wrote:
-- Alan D. Mead, Ph.D. President, Talent Algorithms Inc. science + technology = better workers http://www.alanmead.org |
[Prev in Thread] | Current Thread | [Next in Thread] |