Nick,
Could you please explain how this -gen mage = age[mlineno]- works or where I
could find it. I realize that square brackets are used for explicit
subscripting, but is not clear to me how this working.
Thank you,
Scott
> -----Original Message-----
> From: [email protected] [mailto:owner-
> [email protected]] On Behalf Of Nick Cox
> Sent: Wednesday, September 15, 2004 11:43 AM
> To: [email protected]
> Subject: st: RE: Re: How to speed up loop
> 
> Looks like
> 
> by hhid : gen mage = age[mlineno]
> 
<snip>
> > hhid    lineno       age   mlineno      mage
> >    1         1        32         .         .
> >    1         2        30         .         .
> >    1         3         5         2        30
> >    2         1        68         .         .
> >    2         2        41         1        68
> >    2         3        40         .         .
> >    2         4        17         3        40
> >    2         5        14         3        40
> >
*
*   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/