zaro

Is Yes a 0 or 1?

Published in Binary Representation 1 min read

Yes is often represented as 1 in binary or boolean logic.

According to the reference, yes/no variables can be effectively quantitative, where:

  • 0 represents no
  • 1 represents yes

This encoding allows for the use of standard linear modeling approaches typically applied to quantitative response variables. Therefore, in this context, "yes" is encoded as "1".