Statalist


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

Re: st: RE: change in indexing for stata10


From   David Airey <david.airey@Vanderbilt.Edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: change in indexing for stata10
Date   Thu, 15 Nov 2007 13:30:06 -0600

.

Ah! Maybe the do and run icon similarity bit!?

-Dave

On Nov 15, 2007, at 1:26 PM, Nick Cox wrote:

There was no change in indexing in 10.
Caleb might try -do- rather than -run-.

Nick
n.j.cox@durham.ac.uk

Caleb Southworth

Was there a change in indexing between Stata 9 & 10?

In Stata 9, this generates a list of ids:

forval i = 1/65 {
	di id[`i']
}

In Stata 10, the same loop on the same data generates no output.

. set trace on

. run "C:\DOCUME~1\cjs\LOCALS~1\Temp\STD05000000.tmp"
- forval i = 1/65 {
- di id[`i']
= di id[1]
- }
- di id[`i']
= di id[2]
- }
- di id[`i']
= di id[3]
- }
[snip]

But

. di id[1]
7

Let me know where I've gone wrong.

*
*   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/
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index