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

st: logging ouput from a called program


From   "Danielle H. Ferry" <[email protected]>
To   [email protected]
Subject   st: logging ouput from a called program
Date   Fri, 09 Apr 2004 13:22:49 -0400

Hi there,

I've got the following inside a program:

log using reg1_`1'_r`2'_m`3', replace;
forval i = 1(1)4 {;
di "";
di "--> Outcome = `1'; Race = `2'; MarEduc = `i'";
reg_n_hold `1' `2' `i' `3';
};
log close;

Essentially, I do a bunch of stuff and want to log only this piece. "reg_n_hold" is another program which runs a specified regression. It is this output which I really want to log. But the log doesn't show the ouput for what "reg_n_hold" produces". Is there some way to force the log to see what is inside reg_n_hold?

Thanks.

Danielle Ferry
NBER
*
* 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/




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