recode_sex function

Recode binary sex variable for compatibility