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