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: construct a loop


From   "Daniel Klein" <[email protected]>
To   [email protected]
Subject   Re: st: construct a loop
Date   Sun, 20 Feb 2011 11:46:54 +0100

Hi Nick,

if my guess on what you want to do is right, you just run the complete code once. This will define the program -foo-, which takes a varlist as the only argument. You then type

. foo gender agegroup

That's it. 
If the result is what you want and you plan on doing this more often, you may store the program in your /ado/plus/f directory as  foo.ado. In this case I suggest to choose a more meaningful name (not foo) and writing a short help file, to document what the program does.

Best
Daniel
-- 
GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit 
gratis Handy-Flat! http://portal.gmx.net/de/go/dsl
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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