Statalist The Stata Listserver


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

st: Erreor message after Mata: sizeof()


From   Thomas Corneli�en <[email protected]>
To   <[email protected]>
Subject   st: Erreor message after Mata: sizeof()
Date   Wed, 6 Dec 2006 12:38:19 +0100

Dear all,
I get an error message after using sizeof(X) in Mata. Example see below. What have I done wrong?
If I understand the manual right, I typed exactly what I am supposed to type.
Thomas

. mata
------------------------------------------------- mata (type end to exit) --------------------------------
: X=J(100,100,3)

: mata describe

# bytes type name and extent
-------------------------------------------------------------------------------
80,000 real matrix X[100,100]
-------------------------------------------------------------------------------

: sizeof(X)
'sizeof' found where almost anything else expected
r(3000);

:

-------------------------------------------------------------------------
Thomas Cornelissen
Institute of Empirical Economic Research
Leibniz Universit�t Hannover, Germany
[email protected]
*
* 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