log odds outside the loop since it has only two states