Am 05.05.2011 05:16, schrieb Allin Cottrell:
>
> However, you can't actually represent infinities in gretl: the
> expression "-1/0" will produce a missing value (NA).
>
And IIRC, if you happen to multiply those with zero, you get zeroes.
(There was a thread about this some time ago.) So you
El 05/05/11 05:16, Allin Cottrell escribió:
> On Wed, 4 May 2011, Qi Shi wrote:
>
>> There are three variables y,x.and z in my data, in which z is a
>> dummy. I would like to define a new variable w: if z=1, w=y;
>> otherwise w=-infinity. What is the scripts? thanks!
>
> In principle,
>
> w =
On Thu, 5 May 2011, Sven Schreiber wrote:
> I guess it is official that gretl 2.0 will not distinguish between NA
> and NaN etc.? (Just asking.)
Well, I think so. After the lengthy discussion of this (around
April 2010) the conclusion I came to is that it's pretty much
impossible to set up a
On Wed, 4 May 2011, Qi Shi wrote:
> There are three variables y,x.and z in my data, in which z is a
> dummy. I would like to define a new variable w: if z=1, w=y;
> otherwise w=-infinity. What is the scripts? thanks!
In principle,
w = (z==1)? y : -1/0
However, you can't actually represent
hi
There are three variables y,x.and z in my data, in which z is a dummy. I would
like to define a new variable w: if z=1, w=y; otherwise w=-infinity.
What is the scripts? thanks!
shi,qi