Statalist


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

Re: st: RE: Moving from Stata to Mata


From   "Thomas Jacobs" <[email protected]>
To   [email protected]
Subject   Re: st: RE: Moving from Stata to Mata
Date   Mon, 15 Oct 2007 16:01:45 -0500

Daniel,

Thanks for the suggestion and the translation.

Tom

On 10/15/07, daniel waxman <[email protected]> wrote:
> Tom,
>
> One can view Stata's main memory space as nothing more than a big matrix,
> with variables being columns and observations rows.
>
> I think that st_view() in Mata might be what you're looking for.
>
> By the way, I've always interpreted "hope this helps" as listserv-speak
> which translates roughly into "I've spent some time answering your query but
> can't promise that I'll spend any more..."  Or something like that.  (said
> with humorous intent... no offense to anybody.)
>
> Hope this helps!
>
> Daniel
>
>
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Thomas Jacobs
> Sent: Monday, October 15, 2007 4:12 PM
> To: StataList
> Subject: st: Moving from Stata to Mata
>
> If one is working with program or do file in Stata and wishes to move
> to Mata within the program to use a Mata function for a matrix or
> vector defined in the Stata program, is this possible?
>
> For example, I produce a vector of changes and wish to calculate the
> norm using mata's norm function.  If I invoke Mata, it does not appear
> that any of my Stata variables and matrices are there.  If it is
> possible to move between them, what steps must be taken to "move" the
> matrix from Stata to Mata?
>
> Thanks very much.
>
> Sincerely,
>
> Tom
>
> --
> Thomas Jacobs
> *
> *   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/
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.488 / Virus Database: 269.14.11/1071 - Release Date: 10/15/2007
> 6:48 AM
>
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.488 / Virus Database: 269.14.11/1071 - Release Date: 10/15/2007
> 6:48 AM
>
>
> *
> *   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/
>


-- 
Thomas Jacobs
*
*   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