Date: Mon, 15 Sep 2008 18:17:53 0400
ReplyTo: "P. Cristian Gugiu" <crisgugiu@YAHOO.COM>
Sender: "SAS(r) Discussion" <SASL@LISTSERV.UGA.EDU>
From: "P. Cristian Gugiu" <crisgugiu@YAHOO.COM>
Subject: Count number of unique values in a column vector in IML
Hi all. I have a variable that represents the group an individual belogs
to. I would like to calculate the number of group levels by counting the
number of unique values for a variable in IML. For example,
Variable X
0
0
0
1
1
2
2
2
So, variable X has 3 group levels (0, 1, 2). Anyone know how to define a
variable that is equal to the number of unique values in X?
thanks,
Cristian
