--- "de la Garza, Adrian" <[email protected]> wrote:
> Dear Stata friends,
>
> I am trying to collapse some variables using the MODE as my
> descriptive statistic, but I see that -collapse- doesn't allow
> this. Any thoughts?
>
> Thank you.
> Adrian
Adrian,
You can generate the mode before you -collapse- the data.
. sysuse auto
. egen mpgmode = mode(mpg), by(foreign)
. collapse mpgmode, by(foreign)
Friedrich Huebler
__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.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/