Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: SV: RE: 'outreg' in a 'foreach' - loop: Thanks

From   "Kim Lyngby Mikkelsen (KLM)" <>
To   <>
Subject   st: SV: RE: 'outreg' in a 'foreach' - loop: Thanks
Date   Wed, 9 Jun 2004 16:13:13 +0200

Dear Nick, Richard, and Benn

Nick and Benn basically had the same idea, and it worked just fine.
Thank you all.
Regards Kim

-----Oprindelig meddelelse-----
Fra: Nick Cox [] 
Sendt: 9. juni 2004 14:10
Emne: st: RE: 'outreg' in a 'foreach' - loop

Try something like this 

foreach ... { 

	outreg  ... `append' 

	local append "append" 

i.e. a local macro is set only at the end
of the first loop. 


> -----Original Message-----
> From:
> []On Behalf Of Kim Lyngby 
> Mikkelsen (KLM)
> I wont to use 'outreg' in a 'foreach'-loop, but to do that I
> need 'outreg' to ignore the "append"-option the first time it 
> is called, as the output file does not yet exist.
> How do I make 'outreg' to do that, or is there another way to
> come around this problem?

*   For searches and help try:

*   For searches and help try:

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