Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: moremata on the Mac


From   Kit Baum <[email protected]>
To   [email protected]
Subject   st: Re: moremata on the Mac
Date   Wed, 23 Apr 2008 06:32:58 -0400

This is not a Mata programming issue. It is a matter of accessing the right object libraries of Mata routines, which is something that Stata is supposed to do automatically. Similar problems have been discussed regarding David Roodman's -xtabond2-: someone installs a new version that has a new feature, and it does not work for them immediately after installation. If you quit Stata and restart, your first invocation of a Mata routine will rebuild the library list. You can use the 'mata mlib index' command to make that happen on the fly. But exiting Stata and starting a new Stata session will always deal with the problem.

This happens with official Stata as well, as the first libraries to be searched are the official Mata libraries:


. mata:mata mlib query
.mlib libraries to be searched are
lmatabase;lmataado;lmataopt;lcmp;lfreduse;lkdens;lmoremata;lmoremata10 ;lrpn;lsomersd;ls
> q;lsqbm;lxtabond2

You don't usually see the problem there, though, as when you update official Stata you often update the executable, and swapping executables will have the same effect as exiting and restarting Stata.

Kit Baum, Boston College Economics and DIW Berlin
http://ideas.repec.org/e/pba1.html
An Introduction to Modern Econometrics Using Stata:
http://www.stata-press.com/books/imeus.html


On Apr 23, 2008, at 02:33 , Fred wrote:

Thanks, Kit, that fixed it. As a non-mata programmer, how would I have
known that I should have issued  that command?
*
*   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/



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