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   Ernest Berkhout <[email protected]>
To   [email protected], <[email protected]>
Subject   Re: st: RE: RE: Re: How to speed up loop
Date   Fri, 17 Sep 2004 13:38:08 +0200

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