Statalist The Stata Listserver


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

Re: st: Re: data management - loop?


From   David Kantor <kantor.d@att.net>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Re: data management - loop?
Date   Wed, 23 May 2007 09:56:40 -0400

At 04:53 PM 5/22/2007, Nick Cox wrote:
[...]

I don't think there is any obvious way to handle ties
for mode. There might be substantive solution(s) to that.
-egen ... mode()...-
has some options for handling ties. In case anyone is interested, I wrote a variation that breaks ties by taking the latest-occurring in the data.

--David

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