Date: Mon, 20 Oct 2008 03:30:00 -0400
Reply-To: Jim Groeneveld <jim.1stat@YAHOO.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Jim Groeneveld <jim.1stat@YAHOO.COM>
Subject: Re: Groupings
Hi Randy,
Is it really necessary to create a variable Class? Tell us for what purpose
you need it and the answer might be that you may instead use statements like:
CLASS ID_Group ID;
or
BY ID_Group ID;
depending on your goal and PROC used, without using a deduced class variable.
Regards - Jim.
--
Jim Groeneveld, Netherlands
Statistician, SAS consultant
home.hccnet.nl/jim.groeneveld
On Sun, 19 Oct 2008 18:26:39 -0400, Randy <randistan69@HOTMAIL.COM> wrote:
>Dear All:
> My data is as follows:
>ID ID_Group
>1 1
>1 1
>2 1
>2 1
>2 1
>3 1
>2 2
>2 2
>3 2
>
>and so on
>
>I want to group these varaibles by constructing a new variable "Class"
>
>ID ID_Group Class
>1 1 1
>1 1 1
>2 1 2
>2 1 2
>2 1 2
>3 1 3
>2 2 4
>2 2 4
>3 2 5
>
> Randy
|