Hi,
I want to generate a variable which would be equal to y if variable x were bigger than n or equal to z if x were smaller than or equal to n.
For example, if age>50, I would like "experience"=age+10, but if age<=50 then I would like "experience"=age*5.
Is something like this possible?
Thanks.
I want to generate a variable which would be equal to y if variable x were bigger than n or equal to z if x were smaller than or equal to n.
For example, if age>50, I would like "experience"=age+10, but if age<=50 then I would like "experience"=age*5.
Is something like this possible?
Thanks.
Comment