Bookmark and Share

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   Christophe Kolodziejczyk <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: Unexpected end of file in mata.
Date   Wed, 22 Jan 2014 17:27:56 +0100

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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index