Home / Tag Archives: Goodness of line Fitting

Tag Archives: Goodness of line Fitting

203.2.4 Goodness of fit for Logistic Regression

Goodness of Fit for a Logistic Regression Classification Matrix Accuracy Classification Table & Accuracy Predicted / Actual 0 1 0 True Positive (TP) False Positive (FP) 1 False Negative (FN) True Negative (TN) Also known as confusion matrix Classification Table in R threshold=0.5 predicted_values<-ifelse(predict(prod_sales_Logit_model,type="response")>threshold,1,0) actual_values<-prod_sales_Logit_model$y conf_matrix<-table(predicted_values,actual_values) conf_matrix ## actual_values ## …

Read More »