Statalist The Stata Listserver

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

st: RE: convert datafile to a matrix

From   "Lei Xuan" <[email protected]>
To   <[email protected]>
Subject   st: RE: convert datafile to a matrix
Date   Mon, 24 Apr 2006 10:46:45 -0500

Dear Kit,

Thanks for your suggestions. It is a good point that passing vectors instead
of matrix into C and then Matlab.

Thanks again,

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Kit Baum
Sent: Saturday, April 22, 2006 7:54 PM
To: [email protected]
Subject: st: convert datafile to a matrix

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.


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

Kit Baum, Boston College Economics

*   For searches and help try:

*   For searches and help try:

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