Statalist The Stata Listserver


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

Re: st: Help needed to understand behavior of Mata'sincrement/decrement


From   Joseph Coveney <[email protected]>
To   Statalist <[email protected]>
Subject   Re: st: Help needed to understand behavior of Mata'sincrement/decrement
Date   Tue, 16 May 2006 17:42:32 +0900

The examples were supposed to have been

: i = 1

: (i, ++i, i, i++, i)
       1   2   3   4   5
    +---------------------+
  1 |  2   2   2   2   2  |
    +---------------------+

and

: i = 1

: (i, i, ++i, i, i++, i)
       1   2   3   4   5   6
    +-------------------------+
  1 |  1   1   2   2   2   2  |
    +-------------------------+

respectively.


Joseph Coveney


*
*   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