|
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Output tables, tabulations, etc to a text file
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!
Jeff
*
* 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/