I believe all mata source can be accessed using the viewsource function. For
example,
. viewsource diag.mata
Have a look into section [M-1] source -- Viewing the source code of the
help. Hope this is of some use.
Best wishes,
Alfonso.
========================================================
Dr Alfonso Miranda
Lecturer in Economics
Economics Department
Keele University
Keele, Staffordshire ST5 5BG, UK.
Tel. 44 + (0) 1782 583110
Fax. 44 + (0) 1782 717577
E-mail: [email protected]
http://www.keele.ac.uk/depts/ec/web/People/alfonsom.html
========================================================
-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of Rob Williams
Sent: 07 July 2005 00:59
To: [email protected]
Subject: st: Mata source code for mprobit?
Do any of you know if the mata source code for mprobit (in
particular, the quadrature and simulator routines, which are written
in mata and called by mprobit) is publicly available? Those routines
are included in the mata library lmataado.mlib, but the standard ado
files that come with Stata 9 appear to include only the compiled mata
library, and not the mata source code.
I'm planning to write a computationally intensive estimation routine
that's fairly similar to mprobit, so I'd be interested to see what
those mata source code files look like--both so that I can get an
idea of how complicated it'd be to code my routine in mata and
because I might be able to adapt some of that existing code to handle
part of my routine.
Also, in general, I'd like it if StataCorp would distribute both the
compiled libraries and the source code for routines such as these.
One of the nice things about implementing commands as .ado files is
that users can look at the code and see exactly how the commands
work. Mata seems like it'll be a great tool, but it'll be a lot more
useful if users can see the source code than if we only get to see
compiled libraries.
Thanks,
Rob Williams
--
Professor Roberton C. Williams III
Department of Economics
University of Texas at Austin
1 University Station #C3100
Austin, TX 78712-0301
phone: 512-475-8522
fax: 512-471-3510
email: [email protected]
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/