Hello,
I need to recode a variable named bqbitchyeyes from hsn 1004 to 2665. I'm using the following command for this-
recode bqbitchyeyes (.=0) (0=0) (1=1) if hsn<=2665, gen( bqbitchyeyes_new)
However, this command seems to have some error, as it is showing type mismatch. Can someone please help me to solve the problem? Thanks.
Fahmida
I need to recode a variable named bqbitchyeyes from hsn 1004 to 2665. I'm using the following command for this-
recode bqbitchyeyes (.=0) (0=0) (1=1) if hsn<=2665, gen( bqbitchyeyes_new)
However, this command seems to have some error, as it is showing type mismatch. Can someone please help me to solve the problem? Thanks.
Fahmida
Comment