In this paper, we propose a model-based approach to detect and adjust for observable selection bias in a randomized clinical trial with two treatments and binary outcomes. The proposed method was evaluated using simulations of a randomized block design in which the investigator favoured the experimental treatment by attempting to enroll stronger patients (with greater probability of treatment success) if the probability of the next treatment being experimental was high, and enroll weak patients (with less probability of treatment success) if the probability of the next treatment being experimental was low. The method allows not only testing for the presence of observable selection bias, but also testing for a difference in treatment effects, adjusting for possible selection bias.