Statalist The Stata Listserver


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

st: Mata query


From   Kit Baum <[email protected]>
To   [email protected]
Subject   st: Mata query
Date   Wed, 2 May 2007 10:21:58 -0400

sacrificial lamb

Ade wonders what

select(0,1) versus select(0,0) does.

Try

a = select(0,1)
b = select(0,0)
mata describe

and you will see that the first returns a scalar, whilst the second returns a matrix b[0,0]. I believe that is what is known as a void matrix. Examining the help for void matrices might be useful. Also compare to standard Stata function nullmat().

Kit Baum, Boston College Economics and DIW Berlin
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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index