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]
st: Unexpected end of file in mata.
From
Amadou DIALLO <[email protected]>
To
statalist <[email protected]>
Subject
st: Unexpected end of file in mata.
Date
Wed, 22 Jan 2014 16:41:08 +0100
Hi,
I am still learning (and enjoying mata !!!), but frankly the entry cost is big.
I don't understand why the following code is crashing.
. mata
------------------------------------------------- mata (type end to
exit) ---------------
: i = 1
: if (i == 1) {
> i
> }
> end
unexpected end of line
-----------------------------------------------------------------------------------------
r(3000);
. mata
------------------------------------------------- mata (type end to
exit) ---------------
: i = 1
: if (i = 1) {
> i
> }
> end
unexpected end of line
-----------------------------------------------------------------------------------------
r(3000);
. mata
------------------------------------------------- mata (type end to
exit) ---------------
: i
1
: if (i == 1) i
> end
unexpected end of line
-----------------------------------------------------------------------------------------
r(3000);
--
Amadou B. DIALLO, PhD.
Senior Economist, AfDB.
[email protected]
+21671101789
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/