Statalist


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

Re: st: Table of results


From   Ronnie Babigumira <rb.glists@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Table of results
Date   Wed, 24 Oct 2007 20:20:36 +0200

Austin
Thank you so much for this.

Ronnie

Ps: The loop is neat.

Austin Nichols wrote:
Ronnie--
(i) You could:

tempname out
file open `out'  using rx_results.txt, write replace
file write `out' "Method" _tab "Effect" _tab "SE" _tab "t"
forv r=1/10 {
file write `out'  _n "`: di "`r`r'c1'"'"
forv c=2/4 {
file write `out'  _tab "`: di %4.3f `r`r'c`c'''"
}
}
file close `out'

(2) Yes, then \input{yourfile} in TeX.

On 10/24/07, Ronnie Babigumira <rb.glists@gmail.com> wrote:
Dear Austin
Thanks for the reply. This completely new but exciting territory for me.

i) If I have 10 rows and 4 columns so what the locals are r1/r10 and c1/c4. How would I put this in a loop
ii) My plan is to typeset this in LaTeX so is it a simple matter of replacing the _tab with "&" and adding an extra line
with \\ to close the row.
*
*   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/

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index