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]

Re: st: somersd error message

From   "Roger B. Newson" <>
Subject   Re: st: somersd error message
Date   Wed, 31 Oct 2012 15:28:43 +0000

Thanks to Bill for reminding us about these very useful Mata commands (even though this particular problem seems to have been solved by Barry. I have filed this helpful advice along with my standard answer.

Best wishes


Roger B Newson BSc MSc DPhil
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton Campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Web page:
Departmental Web page:

Opinions expressed are those of the author, not of the institution.

On 31/10/2012 14:25, William Gould, StataCorp LP wrote:
Roger Newson wrote,

RN> This is very curious INDEED. Do you get exactly the same error
RN> message as before, or another one? Because -lsomersd.mlib-
RN> should DEFINITELY include the -tidottree()- function. If it
RN> doesn't, then it is not the correct -lsomersd.mlib-.

when Barry Quinn <> replied most recently about
-mata query- showing that lsomersd was included among lsomersd.mlib and
yet he is still getting the error message that tidottree() is not being

There are some Mata commands that might help debug the issue.
They are

            : mata mlib query

            : mata which tidottree()

            : mata describe using lsomersd

I recommend running them, and in that order specified.

-mata mlib query- merely repeats the list of libriries that Mata
searches; the information provided should be the same as that provided
by -query-, but before we go looking for tidottree(), it's useful to
verify that lsomesd really is in the libaries-to-be searched list.

If it is not, type -mata mlib index- and then issue the
-mata mlib query- again.

-mata which tiddottree()- will cause Mata to report where
tidottree() is, if it is anywhere.  If lsomersd is in the search list,
and if function tiddottree() exists in it, the result will be

         : mata which tiddottree()
           tiddottree():  lsomersd

Alternatively, the result might be

         : mata which tiddottree()
         function tiddottree() not found

Assuming the function is not found, it would be intersting to know
what is in the library lsomersd:

         : mata describe using lsomersd
           <list of contents appears>

-- Bill
*   For searches and help try:

*   For searches and help try:

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