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

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


From   "Jacob, Jeffry Ankur" <[email protected]>
To   <[email protected]>
Subject   st: RE: 'outreg' in a 'foreach' - loop
Date   Wed, 9 Jun 2004 11:44:07 -0500

you can  write
capture outreg ......, replace
before the loop.
within the loop, you can then use the outreg with the append option to write into the above document. 
hope this help.
best,
jeffry

	-----Original Message----- 
	From: [email protected] on behalf of Kim Lyngby Mikkelsen (KLM) 
	Sent: Wed 09-Jun-04 6:46 AM 
	To: [email protected] 
	Cc: 
	Subject: st: 'outreg' in a 'foreach' - loop
	
	

	Dear statalist
	
	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?
	
	Regards
	Kim
	
	
	_________________________________________________________
	Kim Lyngby Mikkelsen, seniorforsker
	Arbejdsmiljøinstituttet
	Lersø Parkallé 105
	DK-2100 København Ø
	Telf.: 391 27274
	
	*
	*   For searches and help try:
	*   http://www.stata.com/support/faqs/res/findit.html
	*   http://www.stata.com/support/statalist/faq
	*   http://www.ats.ucla.edu/stat/stata/
	

<<winmail.dat>>




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