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

st: intra list max/rank


From   Kit Baum <baum@bc.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: intra list max/rank
Date   Sat, 19 Nov 2005 08:14:34 -0500

" this is how far I am now with the egen command. but I want a list like that:
| id bid time rank maxbid |
1. | 1 1 1 1 1 |
2. | 1 4 2 2 4 |
3. | 1 3 3 3 4 |
4. | 1 8 4 4 8 |
5. | 1 10 5 5 10 |
6. | 1 12 6 6 12 |
7. | 1 17 7 7 17 |
8. | 1 14 8 8 17 |

With foucus on maxbid: not the total max of the entire list, but the max from
bid[1] to bid[_n] for all _n's. "


See egenmore (findit egenmore), function record (as in setting a record).


Kit Baum, Boston College Economics
http://ideas.repec.org/e/pba1.html


*
* 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index