Please keep the conversation in the newsgroup.
This accomplishes 2 purposes.
(1) it builds the archives so that people with similar problems can see
replies, etc.
(2) other list members may be able to clarify things, for example David
brought out the first point I made in my reply to much better detail.
I.e., he elaborated on
> a result is set according to the first condition it satisfies.
The menus are a great way to draft syntax. Develop the habit of exiting
the menus via <paste> so you can see the syntax.
The syntax members on this list suggested to you would be pasted into a
syntax window.
<file> <new> <syntax>
Art Kendall
Social Research Consultants
Art Kendall
Social Research Consultants
On 5/13/2014 5:58 AM, Binu Kadel wrote:
> thanx once again
>
> but where do I write this commands.
> Is it in the "compute variables" dialog box ?
>
>
> On Tue, May 13, 2014 at 1:00 AM, Art Kendall <
A...@drkendall.org
> <mailto:
A...@drkendall.org>> wrote:
>
> a result is set according to the first condition it satisfies.
>
>
> before you try it click<help> <Topics> type "recode" in the edit
> box. Click <go>.
>
> something like this untested syntax would work.
> it copies whatever missing value codes you have for bmi.
> You will need to enter the value labels for values that are
> missing and
> list those in a MISSINg VALUES command.
>
> recode bmi
> (lo thru 16 = 1)
> (16 thru 17 = 2)
> (17 thru 18.5 = 3)
> (18.5 thru 23 = 4)
> (23 thru 25 = 5)
> (25 thru 27 = 6)
> (27 thru 30 = 7)
> (30 thru 35 = 8)
> (35 thru hi = 9)
> (else = copy)
> into mycategory.
> value labels mycategory
> 1 'Thinness grade 3'
> ...
> 9 'morbid obesity'
> -1 '
>
>
> Art Kendall
> Social Research Consultants