From | Cameron Hooper <[email protected]> |
To | [email protected] |
Subject | Re: st: Programming question |
Date | Fri, 04 Mar 2005 13:06:31 -0500 |
David Kantor wrote:
David Harrison suggested:At 12:00 PM 3/4/2005 -0500, Cameron Hooper wrote:A novice programming question.If you tell us more about what you want to do, then we may find that you really don't need to do all that explicit looping. Experience has shown that it is very rare that you really need such looping.
forvalues i = 1(1)<number of companies> {
for values j = 1(1)<number of observations for company `i'> {
<do stuff>
}
}
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |