Continuing on the biopsy dataset.
glm.pred that contains the predicted values the glm.fit model you created previously in Logistic Regression 3
(use a cut-off point of 0.5, with “malignant” corresponding to 1, and “benign” to 0)glm.tableglm.accNote:
classis a protected keyword in R. If you want to refer to the class column of the biopsy dataset, please explicitly mentionbiopsy$class. If you create theglm.predvector, make sure you pass the correct size. You can easily find this with thenrow(biopsy)command. Make sure that you have omitted the NA values like we did in Logistic Regression 3
Assume that:
MASS library has been loadedbiopsy dataset has been loaded and attachedID column has been droppedglm.fit created in Logistic Regression 3 is already loaded