Statalist


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

st: re: Command for Writing Matrixes data in ASCII format or Whatever


From   Kit Baum <[email protected]>
To   [email protected]
Subject   st: re: Command for Writing Matrixes data in ASCII format or Whatever
Date   Wed, 19 Sep 2007 09:12:07 -0400

Sergiy mentions -matsave- (also available from SSC). That falls strictly into the 'or Whatever' category, as it only allows you to save Stata matrices as Stata binary datasets, not as ASCII files (a function also performed by matin4-matout4 on SSC). As Ben Jann said, if you want to create an ASCII file with the contents of a matrix, use -mat2txt-.

Alternatively, you can always -svmat- to a set of new variables and - outsheet- only the relevant observations of those variables. Low tech, but it works.


Kit Baum, Boston College Economics and DIW Berlin
http://ideas.repec.org/e/pba1.html
An Introduction to Modern Econometrics Using Stata:
http://www.stata-press.com/books/imeus.html


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