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