Remark: yi is a dichotomous variable with only two different values, for example 0 or 1, 'yes' or 'no', ... .