Statalist


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

RE: st: RE: A query about sorting.


From   "Martin Weiss" <martin.weiss@uni-tuebingen.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: RE: A query about sorting.
Date   Mon, 25 Aug 2008 15:25:22 +0200

Neither have I...

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Rajesh Tharyan
Sent: Monday, August 25, 2008 3:15 PM
To: statalist@hsphsun2.harvard.edu
Subject: RE: st: RE: A query about sorting.

Hi,

What is a bubble sort? Not heard of that before.

rajesh

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Ashim Kapoor
Sent: 25 August 2008 13:37
To: statalist@hsphsun2.harvard.edu
Subject: Re: st: RE: A query about sorting.

I meant bubble sort. My apologies for the typo,

On Mon, Aug 25, 2008 at 5:50 PM, Martin Weiss
<martin.weiss@uni-tuebingen.de> wrote:
> -ssc d rowsort-
>
> BTW, what is a "simple bubble"?
>
> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Ashim Kapoor
> Sent: Monday, August 25, 2008 2:07 PM
> To: statalist@hsphsun2.harvard.edu
> Subject: st: A query about sorting.
>
> Hello everyone,
>
> I have a simple code to write.
>
> I have 6 variables v1, v2 , v3, v4 ,v5 , v6.
>
> I want to sort "according to each observation". That is , in the end
> for each i I want , v1[i] < = v2[i] <=... v6[i].
>
> So I wrote a simple bubble for each row and then loop from 1 to _N.
>
> Now the problem is that this works but it's VERY VERY slow. Any
> comments anyone ?
>
> Thank you guys,
> Ashim. : )
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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