Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: possible nested loop with multiple items


From   "Dr. Bill Westman" <[email protected]>
To   [email protected]
Subject   Re: st: possible nested loop with multiple items
Date   Fri, 30 Apr 2010 16:29:42 -0700 (PDT)

Nick:

Thanks.  While searching archives I tried something else which seems to also work and looks very similar to what you have. 

foreach i of varlist q*_num {;
local y = regexr("`i'", "_num", "_den");
g prop_`i' = `i' /`y';

I think this should work.

Thanks again!

Bill 


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index