Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: RE: RE: Re: How to speed up loop


From   "Scott Merryman" <[email protected]>
To   <[email protected]>
Subject   RE: st: RE: RE: Re: How to speed up loop
Date   Fri, 17 Sep 2004 06:44:15 -0500

Thank you.

Scott


> -----Original Message-----
> From: [email protected] [mailto:owner-
> [email protected]] On Behalf Of Ernest Berkhout
> Sent: Friday, September 17, 2004 6:38 AM
> To: [email protected]; [email protected]
> Subject: Re: st: RE: RE: Re: How to speed up loop
> 
> At 13:21 17/09/2004, Scott Merryman wrote:
> >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.
> 
> For a particular record, the _value_ of the variable mlineno is
> substituted, so that f.i. when mlineno records the value of 2 (mother's
> record is the second in line) the righthandside becomes age[2], meaning
> the
> value of age from the second record (being the mother).
> 

*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index