Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

RE: st: Storing Successive Lincom Results


From   Miguel Ângelo Costa <miguelangelocosta@gmail.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   RE: st: Storing Successive Lincom Results
Date   Wed, 6 Mar 2013 09:43:17 +0000

Hi Ben,





I usually store them in a tab separated txt file by using something like this:





file open fh using "`file'.txt", write 


file write fh "Col1" _tab "col2" _tab "col3" 


file write fh _n "`result1'" _tab "result2" _tab "result3"


file close fh





Miguel

> Date: Wed, 6 Mar 2013 10:07:54 +1100
> From: lists@timbp.com
> To: statalist@hsphsun2.harvard.edu
> Subject: Re: st: Storing Successive Lincom Results
> 
> On 6/03/2013 10:03, Ben Hoen wrote:
> > Is there a way to append the results for each lincom test to a file to be
> > used later, after the entire ado file runs?
> >
> -help postfile- should solve the problem.
> 
> Tim
> 
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/ 		 	   		  
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index