Statalist The Stata Listserver


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

st: error message about Mata memory


From   Kit Baum <baum@bc.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: error message about Mata memory
Date   Mon, 23 Oct 2006 17:25:52 -0400

Nick said

If I understand this correctly, you need to find out
about -set trace-.

. set trace on

sets tracing of commands so that you can see where
in the code a command failed. Tracing can be tuned
in various ways.

I don't know anything about SAS, but if your ideal
is equivalent to

error 198;
at line ... of -foobar-
-foobar- was called from line ... of -whizzbang-
-whizzbang- was called from line ... of -bushranger-
...

well, that's another style, and ultimately equivalent
to Stata's style.




Not quite. If in an ado-file you give the command

mata: myfunc("arguments")

and some error arises in myfunc, you just get an abort. You are not told where within myfunc (or where within whatever Mata function myfunc might call) the error occurs in any useful way. The example that provoked this thread included a stack trace through several Mata functions, but the information about where in the ultimate module (xtm_mixed_ll_uu()) the abend occurs is, regrettably, not available.


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


*
* 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index