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
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
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
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:
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
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
>> 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