Linear And Logistic Probability Model In R