Statalist The Stata Listserver


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

st: convert datafile into a matrix


From   "Lei Xuan" <leix@martingale-research.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: convert datafile into a matrix
Date   Fri, 21 Apr 2006 13:54:21 -0500

Hi,

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?
The interface of My MATLAB function is:

  [scalar1, scarlar2, scarlar3, ... , scalar8] = myfunction[betamx,
inputmax] 

Where,
   Betamx is one dimension matrix (1 by m) or vector obtained from -regress-
or -logit-;
   Inputmx is n by m dimension matrix with n cases and m variables.

Thanks,
Lei 


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