Statalist


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

Re: st: how to transfer scalars from Mata to Stata for a simulation?


From   "mujde erten" <[email protected]>
To   [email protected]
Subject   Re: st: how to transfer scalars from Mata to Stata for a simulation?
Date   Fri, 21 Nov 2008 14:09:28 -0500

Thanks everyone, I used st_numscalar. But there are other things
necessary to use in simulation...

MZE

On Fri, Nov 21, 2008 at 12:52 PM, Sergiy Radyakin
<[email protected]> wrote:
> Hello MZE,
>
> how about st_numscalar() ?
>
> Regards, SR
>
>
> On Thu, Nov 20, 2008 at 10:35 PM, mujde erten <[email protected]> wrote:
>> Hi all,
>>
>> I am doing a simulation analysis in Stata. However I need to use some
>> linear algebra and I am using Mata for this. The outcome is a scalar
>> in Mata. But
>> I could not find a way to transfer this to Stata. The problem is
>> although I am using "st_store()" Stata is giving conformability error
>> since my data set is n and the scalar has one observation. Also I need
>> to repeat this and get an observation from each data set in the
>> simulation. Is there a way to deal with this problem? Thanks.
>>
>> MZE
>> *
>> *   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/
>
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index