Comparison of the logistic and Cox regression models when outcome is determined in all patients after a fixed period of time