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]
Re: st: Unexpected end of file in mata.
From
Amadou DIALLO <[email protected]>
To
[email protected]
Subject
Re: st: Unexpected end of file in mata.
Date
Wed, 22 Jan 2014 17:37:16 +0100
Many thanks David.
Very intuitive. I think I still need to set my mind on the nature of
mata (compiler) versus stata (interpreter).
Once you get to know all the basic, mata is formidable and I strongly
encourage everyone to invest effort to learn it.
Vive mata!
2014/1/22, Christophe Kolodziejczyk <[email protected]>:
> Dear Amadou
> There is an older post on this issue.
> http://www.stata.com/statalist/archive/2006-04/msg00434.html
> Best
> Christophe
>
>
> 2014/1/22 Amadou DIALLO <[email protected]>:
>> 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/
>
>
>
> --
> Christophe Kolodziejczyk
> Research Fellow
>
> AKF, Anvendt KommunalForskning
> Danish Institute of Governmental Research
> Købmagergade 22
> DK-1150 København K
>
> *
> * 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/
>
--
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/