[Limdep Nlogit List] Looping
William Greene
wgreene at stern.nyu.edu
Thu Nov 16 02:11:42 EST 2006
Steven Yen <syen at utk.edu>
Steven. The loop has to be embedded in a PROCEDURE.
That is why you only got one execution of it.
/Bill Greene
************************************************
Professor William Greene
Department of Economics
Stern School of Business
New York University
44 West 4th St., Rm. 7-78
New York, NY 10012
Ph. 212.998.0876
Fax. 212.995.4218
URL. http://www.stern.nyu.edu/~wgreene
Email. wgreene at stern.nyu.edu
************************************************
----- Original Message -----
From: Steven Yen <syen at utk.edu>
Date: Wednesday, November 15, 2006 9:37 am
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