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

st: Output tables, tabulations, etc to a text file

From   Jeff Pflueger <>
Subject   st: Output tables, tabulations, etc to a text file
Date   Wed, 09 Jul 2008 16:47:51 -0700

I have a do file that goes through a dataset for each US state.
From each state I need a few pieces of information by county. Most of this I can do for each state through tabulate:

tabulate county interesting_yes_no_question [fw=weight]

I'd like to take the results of the tabulation and append them to a results file that is comma or tab delimited so that by the time the do file has gone through all the state datasets, I have a single comma or tab delimited file of the results for all of the states.

There seems to be about half a dozen approaches to getting Stata output into a file. None seem too clean at this point. Nothing I've seen is too elegant yet.

Isn't there an easy way that I can take the results from a command like tabulate and then use "file" to append them to the end of a file?

Thanks for any help!
* For searches and help try:

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