Statalist The Stata Listserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: Foreach nested in Foreach

From   Socrates Mokkas <>
Subject   st: Re: Foreach nested in Foreach
Date   Thu, 19 Oct 2006 10:51:09 +0100

Hi All,

Another problem that I have with my code below
is that it turns out the message that I exceed the limit of 
the macro. How could I possibly solve the problem?


su group, meanonly
forvalues i=1/`r(max)' {;
levelsof bvd_id_number, local(levels)
foreach l of local levels {;
local k=1
while `k'<=`year_count' {;
replace gamo=gamo + (tax[_`l']-tax[_`k'])*ratio_assets[_`k'] if bvd_id_number==`l' 
local k=`k'+1

*   For searches and help try:

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