Thank you very much Allin! I'm quite impressed by that beautiful solution. Have a nice weekend Pindar
-----Ursprüngliche Nachricht----- Von: gretl-users-bounces(a)lists.wfu.edu [mailto:gretl-users-bounces(a)lists.wfu.edu] Im Auftrag von Allin Cottrell Gesendet: Samstag, 3. Juli 2010 20:15 An: Gretl list Betreff: Re: [Gretl-users] creating a discrete variable? On Sat, 3 Jul 2010, Pindar wrote: > So here correctly stated: > > If test=1 then NEW=0 > If test=2 then NEW=1 > If test=0 then NEW=2 series NEW = (test==1)? 0 : (test==2)? 1 : 2 Allin Cottrell _______________________________________________ Gretl-users mailing list Gretl-users(a)lists.wfu.edu http://lists.wfu.edu/mailman/listinfo/gretl-users