|
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: Unexpected -egen , fill()- behavior
From
Jeph Herrin <[email protected]>
To
[email protected]
Subject
Re: st: Unexpected -egen , fill()- behavior
Date
Sat, 02 Dec 2006 11:37:37 -0500
Or perhaps even better,
. sort x
. gen group = ceil(_n/4)
Jeph
Jeph Herrin wrote:
. egen group=fill(1 1 1 1 2 2 2 2 )
will do what you need.
*
* 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 |