Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: obtaining the list of values of a variable


From   "Sanz De Galdeano, Anna" <Anna.Sanz.De.Galdeano@iue.it>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: obtaining the list of values of a variable
Date   Thu, 1 Apr 2004 17:51:07 +0200

Hello,
 
Is levels an ado file or an option of some command? I cannot find it.
 
Thanks,
 
anna

	-----Original Message----- 
	From: Edwin Leuven [mailto:e.leuven@uva.nl] 
	Sent: Thu 01/04/2004 15:22 
	To: statalist@hsphsun2.harvard.edu 
	Cc: 
	Subject: Re: st: obtaining the list of values of a variable
	
	

	check out -levels-
	
	On Thu, 1 Apr 2004, dr kardos laszlo wrote:
	
	> hi all,
	>
	> after some search into the matter, i am still puzzled by this: is there an
	> easy way of obtaining the (alphabetical, if possible) list of unique values
	> taken by a string variable and assigning it to a local macro?
	>
	> preferably, this would be done without having to change the dataset
	> then -restore-.
	>
	> i have a feeling someone must have done this before and there is a
	> straightforward solution i happen to overlook.
	>
	> thanks a lot,
	>
	> laszlo
	>
	> *
	> *   For searches and help try:
	> *   http://www.stata.com/support/faqs/res/findit.html
	> *   http://www.stata.com/support/statalist/faq
	> *   http://www.ats.ucla.edu/stat/stata/
	>
	*
	*   For searches and help try:
	*   http://www.stata.com/support/faqs/res/findit.html
	*   http://www.stata.com/support/statalist/faq
	*   http://www.ats.ucla.edu/stat/stata/
	

<<winmail.dat>>




© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index