logistic.acc: Contingency table: Predicted vs. Observed Outcomes
Description
This function takes predicted probabilities (for out of bag cases) obtained
through logistic regression-based tree models and converts them into binary
classes (based on specified probability threshold). The predicted
classifications are then compared to actual binary response.
# NOT RUN {# We should get 15 predictions correct and miss 5response <- matrix(c(rep(0,10), rep(1,10)))
predicted <- c(rep(.1,15), rep(.8,5))
logistic.acc(response, predicted, .5)
# }