Statalist The Stata Listserver


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

st: Mata query


From   Adrian Mander <[email protected]>
To   [email protected]
Subject   st: Mata query
Date   Wed, 02 May 2007 13:56:44 +0100

Does anyone know why the first line works (below) but the second line doesn't?
and what exactly is select(0,0)? because I need an if statement to handle
this but don't know what this would be.

Anyone any ideas?


: (select( 0 , 1)) \ 1
1
+-----+
1 | 0 |
2 | 1 |
+-----+

: (select( 0 , 0)) \ 1
<istmt>: 3200 conformability error
r(3200);


thanks in advance
Ade
*
* 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