Sample size calculation for logistic regression when the independent variable is binary