[Gretl-users] small practical issue

2013-11-21 Thread Artur T .
Hi gretl users, I am looking for a simple way to determine the column for which scalar B is, let's say, larger or equal to the entry A[i] and store this information in scalar C. If B is never greater than any entry in A[i], C is zero. Reading out each entry via a loop is possible, but I am wonderi

Re: [Gretl-users] small practical issue

2013-11-21 Thread Hélio Guilherme
This is my experiment: CC=(A .<= B)?1:0 CC CC (1 x 4) 0 1 1 1 But that wont give you the indexes. Good luck On Thu, Nov 21, 2013 at 11:05 AM, Artur T. wrote: > Hi gretl users, > > I am looking for a simple way to determine the column for which scalar B > is, let's say, larger or equ

Re: [Gretl-users] small practical issue

2013-11-21 Thread Dr RJF Hudson
same in Gretl but I confess to being a novice at Gretl sorry to say right now Best wishes to all, Hope these few commnts are of small help Good luck Richard Hudson Dr RJF Hudson - Original Message - From: "Artur T." To: "Gretl list" Sent: Thursday, November 21, 2

Re: [Gretl-users] small practical issue

2013-11-21 Thread Artur T .
at > Gretl sorry to say right now > Best wishes to all, > Hope these few commnts are of small help > Good luck > Richard Hudson > > > > > Dr RJF Hudson > - Original Message - > From: "Artur T." > To: "Gretl list" > Sent:

Re: [Gretl-users] small practical issue

2013-11-21 Thread Allin Cottrell
On Thu, 21 Nov 2013, Artur T. wrote: > I am looking for a simple way to determine the column for which scalar B > is, let's say, larger or equal to the entry A[i] and store this > information in scalar C. If B is never greater than any entry in A[i], C > is zero. You say "the" column: does that m

Re: [Gretl-users] small practical issue

2013-11-21 Thread Artur T .
Thanks Allin, this was exactly what I was looking for! Very nice and neat solution :-) Artur Am 21.11.2013 13:20, schrieb Allin Cottrell: > On Thu, 21 Nov 2013, Artur T. wrote: > >> I am looking for a simple way to determine the column for which scalar B >> is, let's say, larger or equal to the

Re: [Gretl-users] small practical issue

2013-11-21 Thread Dr RJF Hudson
>> in the column vector at each "i" location >> and I suspect it is the same in Gretl but I confess to being a novice at >> Gretl sorry to say right now >> Best wishes to all, >> Hope these few commnts are of small help >> Good luck >> Richard Hu