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

st: Re: moremata on the Mac

From   Kit Baum <>
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
An Introduction to Modern Econometrics Using Stata:

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:

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