Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: sort a list


From   "Steichen, Thomas J." <[email protected]>
To   <[email protected]>
Subject   RE: st: sort a list
Date   Thu, 19 Jan 2006 09:33:54 -0500

  Try:  

  . bysort coulour (id): list id names age


Thomas J. Steichen
[email protected]
----------------------------------------------------------------------------
  Facts do not cease to exist because they are ignored. - Aldous Huxley
----------------------------------------------------------------------------



> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Lia Orfei
> Sent: Thursday, January 19, 2006 4:58 AM
> To: [email protected]
> Subject: Re: st: sort a list
> 
> 
> yes I tried this first thing but it didnt work.
> Thanks anyway, any other ideas?
> 
> Tom Trikalinos wrote:
> 
> > sort colour id
> > by colour:  list id names age
> >
> >
> >
> >
> > On Jan 18, 2006, at 6:42 PM, Lia Orfei wrote:
> >
> >> Dear all,
> >> is there anybody who knows how to list variables that are 
> sorted by a
> >> variable of my choice?
> >> In practice, I have to do something like this (pure example):
> >>
> >> bysort colour: list id names age
> >>
> >> and I want to resulting list to be sorted by id say, so within each
> >> colour category, I want to sort again id numbers.
> >>
> >> Any ideas?
> >>
> >> Cheers
> >>
> >> Lia
> >>
> >> --
> >> This message has been scanned for viruses and
> >> dangerous content by MailScanner, and is
> >> believed to be clean.
> >>
> >> *
> >> *   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/
> >>
> >>
> > Tom Trikalinos, MD
> > [email protected]
> >
> > *
> > *   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/
> >
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 
> *
> *   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/
> 

-----------------------------------------
CONFIDENTIALITY NOTE: This e-mail message, including any attachment(s),
contains information that may be confidential, protected by the
attorney-client or other legal privileges, and/or proprietary non-
public information. If you are not an intended recipient of this
message or an authorized assistant to an intended recipient, please
notify the sender by replying to this message and then delete it from
your system. Use, dissemination, distribution, or reproduction of this
message and/or any of its attachments (if any) by unintended recipients
is not authorized and may be unlawful.


*
*   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/



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