Hi Joseph,
It works. Thank you very much!
Wu
----- Original Message -----
From: Joseph Coveney <stajc2@gmail.com>
To: statalist@hsphsun2.harvard.edu
Cc:
Sent: Thursday, April 4, 2013 11:29 PM
Subject: st: Re: export matrix from mata to stata
Wu Zhang wrote:
Could you someone help me export matrix from mata to stata? I know the other
way around: st_matrix, but do not know how to export from mata.
--------------------------------------------------------------------------------
It's the same function. Use it as a void function.
Joesph Coveney
. mata:
--------------- mata (type end to exit) ---------------
: A = (0, 0 \ 1, 1)
: st_matrix("StataMatrix", A)
: end
-------------------------------------------------------
. matrix list StataMatrix
StataMatrix[2,2]
c1 c2
r1 0 0
r2 1 1
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/