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

From |
Glenn Goldsmith <glenn.goldsmith@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
RE: st: Create an ado file which contains multiple mata functions |

Date |
Thu, 25 Jun 2009 22:48:54 +0100 |

<> -help m1_ado- should answer your first question (you might particularly want to look at the section on "Where to store the Mata functions"). AFAICT the order in which the mata functions appear in an .ado file does not matter (unless you're using structures, in which case they need to be defined before they can be used). http://fmwww.bc.edu/repec/bocode/s/SSCsubmit.html should answer your second question. HTH, Glenn. Nathan Danneman <ndanneman@gmail.com> wrote: Hi all, I am trying to write an .ado file that will set up a few components in stata, then use those components in mata. Interestingly, there are several mata functions which need to be defined for the highest-level function to work. I would like to eventually share this ado file with the stata community. That said, I have the following questions: 1) Where/how should the mata function (and sub-functions) appear in the ado file (especially with regards to making the program execute quickly, given that the mata functions which need to be defined contain around 60 lines of code). Would this be correct... program trial... syntax... stata commands... mata: highest level function more stata commands to display resutls end program mata highest level function... ... end progrm mata function called by highest level function... ... end ? 2) Once written (and extensively tested), how does one go about making an ado file public? Thanks so much, Nathan * * 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/

- Prev by Date:
**st: Re: Code erroring out because of "no observations"** - Next by Date:
**Re: st: nested clusters with svy command** - Previous by thread:
**st: Create an ado file which contains multiple mata functions** - Next by thread:
**RE: st: AW: gllamm (poisson) execution time** - Index(es):

© Copyright 1996–2015 StataCorp LP | Terms of use | Privacy | Contact us | What's new | Site index |