Re: [Gretl-users] Another loop question and a print question

2010-05-26 Thread Leon Unger
Hi artur, thanks for the code, it works really fine. In a first step I updated it in order to print only the ith value, but really great would be to specify a random order like 1 20 and 25. Here is the code #print out the tth value of the ith unit scalar t = 7 # this is the t-th peri

Re: [Gretl-users] Another loop question and a print question

2010-05-26 Thread artur bala
Hi pindar, Hope the following script may (partially) help you. It prints out the t-th period value for each unit. null Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ? Je crée ma boîte mail www.laposte.net Hi pindar,Hope the following script may (partially) help y

[Gretl-users] Another loop question and a print question

2010-05-26 Thread Pindar
Hi there, I have a panel data set and want to print the realization of a variable for the ith individual at the the tth period without altering the sample via smpl. If this works it should be possible to do such operations not only for one individual and period but in a loop for several indiv

Re: [Gretl-users] Loop question

2010-05-26 Thread Jack
On Tue, 25 May 2010, Henrique Andrade wrote: > Dear Riccardo, Kehl and Guilherme, > > I was looking for something simple. The option "loop for (n=6; n<=24; > n*=2)" worked just fine. But in my humble opinion the option "loop for > (n=6; n=12; n=24)" should work too, but this is not a big deal ;

Re: [Gretl-users] Loop question

2010-05-26 Thread Allin Cottrell
On Tue, 25 May 2010, Henrique Andrade wrote: > I was looking for something simple. The option "loop for (n=6; > n<=24; n*=2)" worked just fine. But in my humble opinion the > option "loop for (n=6; n=12; n=24)" should work too, but this is > not a big deal ;-) The three fields in the "classic" f

Re: [Gretl-users] Loop question

2010-05-26 Thread Hélio Guilherme
I disagree with your proposed syntax. I should know that the current form of the loop for, comes from the C language (and then C++ and Java). I think that we could have something like: loop n in 6 12 24 xlist Where n is the loop variable 6, 12 and 24 are numbers, and xlist is a list of the same t