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

Re: st: Table of results

From   "Austin Nichols" <>
Subject   Re: st: Table of results
Date   Wed, 24 Oct 2007 13:47:23 -0400

(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 <> 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:

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