[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: RE: RE: RE: Re: How to speed up loop
Nick and Ernest,
Thank you for the explanations. I was under the impression that the
explicit subscripting "function" would only evaluate numbers or the built-in
variables _n and _N.
> -----Original Message-----
> From: firstname.lastname@example.org [mailto:owner-
> email@example.com] On Behalf Of Nick Cox
> Sent: Friday, September 17, 2004 6:52 AM
> To: firstname.lastname@example.org
> Subject: st: RE: RE: RE: Re: How to speed up loop
> . by hhid : gen mage = age[mlineno]
> hhid lineno age mlineno mage
> 1 1 32 . .
> 1 2 30 . .
> 1 3 5 2 30
> Each expression within [ ] is evaluated
> separately for each observation. For
> the first and second
> age[mlineno] becomes age[.]
> which is taken as missing. For the third,
> age[mlineno] becomes age
> which by the wrinkle rule above is 30.
> It is the third observation _within that group_.
* For searches and help try: