Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: mata in program define


From   Joerg Luedicke <[email protected]>
To   [email protected]
Subject   Re: st: mata in program define
Date   Tue, 5 Jul 2011 00:17:49 -0400

You need to have two -end-s in your program: one at the end of the
ado-part, and one at the end of the Mata program. Then it should work.

J.

On Mon, Jul 4, 2011 at 11:35 PM, Zhi Su <[email protected]> wrote:
> Hi, Dear statalists,
>  I need to get bootstrap standard errors in a regression. And I need
> to define a program that produce the standdard errors for a single
> sample. When defining parts of the program that is involved with
> matrix calculation, mata is used. When the part of mata command
> complete, I need to use command "end". This "end" is taken by Stata as
> the end of program define. However, it is not because several commands
> need to be run after the parts of matrix calculation.
>  How can I let the stata know that the "end" is the "end" of mata
> workspace, not the "end" of program define?
>  Thank you!
>
>
> Zhi Su
> 348 Holmes Hall
> Northeastern University
> 360 Huntington Avenue
> Boston, MA 02115
> Office:1-617-373-2316
> email:[email protected]
> *
> *   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index