Computer program for the logistic model to estimate the probability of occurrence of discrete events