Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Save matrix to text file or as dataset


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Save matrix to text file or as dataset
Date   Tue, 9 Nov 2004 01:06:17 -0000

You can save a matrix to variables using 
-svmat-. Then your goal is two steps away. 
This is indicated by the help for -matrix-
or a -search- for -save matrix-. 

-svmat2- from STB-56 had a couple of extra 
tweaks. 

If you wanted to do this a lot, you might 
be better off writing your own program 
using -file-. However, there are precision  
issues to be aware of. 

Nick 
[email protected] 

TEWODAJ MOGUES
 
> I have a very short question: How do I save a matrix I 
> created in stata 
> to an ASCII (text) file, or if that is not possible, save it 
> as a stata 
> dataset (.dta) (since I know how to save a dataset to a text file)?

*
*   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