[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

From |
"Michael Blasnik" <michael.blasnik@verizon.net> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
Re: st: RE: logging ouput from a called program |

Date |
Fri, 9 Apr 2004 16:46:53 -0400 |

I think prefacing the -reg_n_hold- command with -noisily- should also work. Michael Blasnik michael.blasnik@verizon.net ----- Original Message ----- From: "Danielle H. Ferry" <dferry@gc.cuny.edu> To: <statalist@hsphsun2.harvard.edu> Sent: Friday, April 09, 2004 3:34 PM Subject: Re: st: RE: logging ouput from a called program > Ok, I had to put the log statement inside reg_n_hold. I was hoping there > was a way to do it from outside, but this is fine. Thanks. > > Nick Cox wrote: > > > The -log- is just echoing what your program > > produces. It does nothing else. So you need > > to change your program. > > > > -reg_n_hold- is presumably a program under your > > control. I have two guesses. > > > > 1. It appears that it keeps quiet about > > what it does; so, you may have to get inside that > > program to change that behaviour. > > > > 2. Alternatively, this code you reproduce is > > all within some > > > > quietly { > > > > } > > > > group, in which case prefixing -reg_n_hold- with > > "noisily" may be sufficient. > > > > Nick > > n.j.cox@durham.ac.uk > > > > Danielle H. Ferry > > > >>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? > > * * 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/

**References**:**st: RE: logging ouput from a called program***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

**Re: st: RE: logging ouput from a called program***From:*"Danielle H. Ferry" <dferry@gc.cuny.edu>

- Prev by Date:
**RE: st: Residuals in Logistic Regression** - Next by Date:
**Re: st: RE: tabodds.ado** - Previous by thread:
**Re: st: RE: logging ouput from a called program** - Next by thread:
**st: How to make prediction after a spline regression** - Index(es):

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