Many thanks to all who responded and especially to Nick, who had the
fastest solution. As an example, with one of my datasets the loop
takes 30.1 seconds to create mage. The command suggested by Nick
takes 0.08 seconds.
Friedrich
--- Nick Cox <[email protected]> wrote:
> Looks like
>
> by hhid : gen mage = age[mlineno]
>
> to me. No loops, no -merge-.
>
> Nick
> [email protected]
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail
*
* 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/