[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: RE: RE: RE: Re: How to speed up loop
While it is doubtless clear from the example what was meant, there is
nonetheless a typo that might throw off a newcomer to the wonderful world of
variable indexing. In the nicely worked example presented by Nick he translates
the expression "age[mlineno]" as "age" when, in fact, it should have been
"age." I mention this because it's really a tricky concept for someone not
accustomed to using variables as indexes. If you didn't already grasp the
principles involved, taking the values literally might leave you hopelessly
confused. So, in the excerpt quoted below, substitute "age" for "age" and
"second" for "third" to see the correct connections.
> -----Original Message-----
> From: firstname.lastname@example.org
> [mailto:email@example.com]On Behalf Of Nick Cox
> Sent: Friday, September 17, 2004 4:52 AM
> To: firstname.lastname@example.org
> Subject: st: RE: RE: RE: Re: How to speed up loop
> 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: