Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: AW: Data from MATA to STATA


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: Data from MATA to STATA
Date   Wed, 31 Mar 2010 17:51:37 +0200

<> 


Have you applied the recent update to Stata 11 which introduced the
-getmata- command? Also see
http://www.stata-journal.com/article.html?article=pr0050




HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Sergio Guerra
Gesendet: Mittwoch, 31. März 2010 17:49
An: statalist@hsphsun2.harvard.edu
Betreff: st: Data from MATA to STATA

Dear users,

I'm working with a dataset of 180 observations. After a few transformations
and handling using mata I construct 5 new variables of 168 observatios each
one.

The five variables are packed in a matrix called result so result is a 168x5
matrix.

It would be very usefull to use in STATA instead of MATA the result matrix
but I find no proper way to trasnfer the data from one workspace to the
other.

The st_addvar command seems to be the right choice but I find no way for use
it. (Maybe an example in the manual should be a good idea for future
versions)

Besides, my next step is to construct 100 of new variables...and st_addvar
seems to work just one by one ...

Any help?

Thanks

Sergio Guerra
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/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/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index