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
--
"Imagination is more important than knowledge..."
-- Albert Einstein
*
* 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/