Bookmark and Share

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


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

Re: st: Errror in cendif - tidotforsomersd(): 3499 tidottree() not found


From   Roger Newson <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: Errror in cendif - tidotforsomersd(): 3499 tidottree() not found
Date   Thu, 1 Jul 2010 18:20:46 +0100

The fix to Richard's problem is probably to exit Stata after installing the -somersd- package (which includes -cendif-) and then launch Stata again. The -somersd- package (including -cendif-) should then work.

The reason for this is that the -somersd- package includes a Mata library -lsomersd.mlib-. In general. Stata looks for Mata routines in a list of libraries, which can be found by typing, in Stata

mata: mata mlib query

This list is constructed when Stata is launched. In some versions of Stata (but not others), Stata does not update its list of Mata libraries to be searched when a new package (such as -somersd-) is installed. This has the consequence that, if the user then tries to use the -somersd- package, then Stata looks for the Mata procedure -tidottree()- in its old list of libraries, and does not find -tidottree()-, and therefore gives the error message

tidotforsomersd():  3499  tidottree() not found

that James has received. If James exits Stata and then launches Stata again, then Stata should re-initialize its list of Mata libraries to be searched, and this list should then include the Mata library -lsomersd.mlib-, which contains -tidottree()- and other Mata procedures used by the -somersd- package.

I hope this helps. Let me know if there are any problems.

Best wishes

Roger


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
UNITED KINGDOM
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Email: [email protected]
Web page: http://www.imperial.ac.uk/nhli/r.newson/
Departmental Web page:
http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/popgenetics/reph/

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

On 01/07/2010 15:34, Richard Palmer-Jones wrote:
Dear Readers

I have the following error:

. cendif incompc, by(_treat)
variable incompc not found
r(111);

. cendif incomepc, by(_treat)
Y-variable: incomepc ((mean) incomepc)
Grouped by: _treated (psmatch2: Treatment assignment)
Group numbers:

   psmatch2: |
   Treatment |
  assignment |      Freq.     Percent        Cum.
------------+-----------------
------------------
   Untreated |        260       33.85       33.85
     Treated |        508       66.15      100.00
------------+-----------------------------------
       Total |        768      100.00
        tidotforsomersd():  3499  tidottree() not found
                  <istmt>:     -  function returned error
Mata run-time error
r(3499);


treat is 0/1; incomepc is continuous

cendif is dated 4th August 2008, and somersd has teh same date.

tidotforsomersd():  3499  tidottree()  are bothe in c:\ado/plus/t
which is in my ado path.

. which cendif
c:\ado\plus\c\cendif.ado
*! Author: Roger Newson
*! Date: 04 August 2008

. adopath
   [1]  (UPDATES)   "C:\Program Files\Stata11\ado\updates/"
   [2]  (BASE)      "C:\Program Files\Stata11\ado\base/"
   [3]  (SITE)      "C:\Program Files\Stata11\ado\site/"
   [4]              "."
   [5]  (PERSONAL)  "c:\ado\personal/"
   [6]  (PLUS)      "c:\ado\plus/"
   [7]  (OLDPLACE)  "c:\ado/"

I am running Stata 11.1 born 16/6/2010

All advice very gratefully recieved.

Richard

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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