Statalist The Stata Listserver


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

st: convert datafile to a matrix


From   Kit Baum <[email protected]>
To   [email protected]
Subject   st: convert datafile to a matrix
Date   Sat, 22 Apr 2006 20:53:48 -0400

Unless you are going to carry out matrix operations in Stata, there is no need to make it into a matrix--just use outsheet on the variables and observations that you want to pass to MATLAB. If you want to kick out the vector arising from regress or logit, use the file command.

If you want to work with your dataset as a matrix in Stata, use a Mata view on the dataset.
help mata for details.

Kit

On Apr 22, 2006, at 2:33 AM, Lei wrote:
I want to convert my input dataset into a big matrix and pass it to C code
and then pass it to MATLAB. I am not very familiar with matrix operations in
STATA. Would you please simple point me to some examples or sample codes?


Kit Baum, Boston College Economics
http://ideas.repec.org/e/pba1.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