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]

From |
Joerg Luedicke <joerg.luedicke@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

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 <su.zh@husky.neu.edu> 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:su.zh@husky.neu.edu > * > * 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/

**References**:**st: mata in program define***From:*Zhi Su <su.zh@husky.neu.edu>

- Prev by Date:
**st: mata in program define** - Next by Date:
**st: Re: mata in program define** - Previous by thread:
**st: mata in program define** - Next by thread:
**st: Re: mata in program define** - Index(es):