[Limdep Nlogit List] Looping
Richard Hofler
rhofler at bus.ucf.edu
Thu Nov 16 02:24:33 EST 2006
This does it.
CALC ;i=0 $
PROC
CALC ;list ;i=i+1 $
ENDPROC
EXECUTE ;n=3 $
Richard
Richard A. Hofler
Professor
Office: BA2 302F
Voice: (407) 823-2606
-----Original Message-----
From: limdep-bounces at limdep.itls.usyd.edu.au
[mailto:limdep-bounces at limdep.itls.usyd.edu.au] On Behalf Of Steven Yen
Sent: Wednesday, November 15, 2006 9:38 AM
To: Limdep and Nlogit Mailing List
Subject: [Limdep Nlogit List] Looping
I need to program with do loops but cannot get this simple one to
work right. Can someone help? I very much like to get both options
(below) to work. Thanks.
calc ;k=0 $
do for ;10 ;i=1,3 $
calc; k=k+1 $
? calc ;list ;i $ ? Had expected this to work but got an error message
calc ;list ;k $ ? So I tried this
enddo ;10 $
? Had expected to print 1, 2, 3 through the loop but got only 1
? Help!
_______________________________________________
Limdep site list
Limdep at limdep.itls.usyd.edu.au
http://limdep.itls.usyd.edu.au
More information about the Limdep
mailing list