Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

st: problems with finding mata libraries in the PLUS directory

From   Christophe Kolodziejczyk <>
Subject   st: problems with finding mata libraries in the PLUS directory
Date   Sat, 30 Jul 2011 16:30:41 +0200

I have some problems with a library which is stored in the PLUS
directory but does not appear in the list of libraries to be searched
after having run mata mlib index command.
Here is an example, where I have  created a library in PLUS and run
mata mlib index to rebuild the index of the libraries . After having
run the program, there is no trace of the new library in the list of
libraries to be searched. I haven't this problem when I change the
directory to PERSONAL. Any idea why I have this problem?
Thanks for your help

. clear mata

. mata:
------------------------------------------------- mata (type end to
exit) ------------ --------------------------------------------------
: function addition(a,b)
> {
> return(a+b)
> }

: mata mlib create laddition , replace dir(PLUS)
(file c:\ado\plus\laddition.mlib created)

: mata mlib add laddition *()
(1 function added)

: mata describe using laddition
(library contains 1 member)

      # bytes   type                        name and extent
           76   auto transmorphic matrix    addition()

: mata mlib index
.mlib libraries to be searched are now
> lib_benchmarksurv;llib_id;llib_matabench;llib_nid;
> llib_psw;lnicolib;lnwspgr;lorenz;lpersonal;lplack;lpscorelib;lsimul_hce;ltauchen;lta
> xben;lvfunckw;lfhh;lhalton;lkdens;lsq

: end

. sysdir
   STATA:  C:\Program Files (x86)\Stata11\
 UPDATES:  C:\Program Files (x86)\Stata11\ado\updates\
    BASE:  C:\Program Files (x86)\Stata11\ado\base\
    SITE:  C:\Program Files (x86)\Stata11\ado\site\
    PLUS:  c:\ado\plus\
PERSONAL:  c:\ado\personal\
OLDPLACE:  c:\ado\
*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index