Learn R Programming

AutoModel (version 0.4.9)

classification_table: Binary Logistic Regression: Classification Table

Description

Binary Logistic Regression: Classification Table

Usage

classification_table(model, response)

Arguments

model
A binary logistic regression model object.
response
The dependent variable in model.

Details

Creates classification table for binary logistic regresison model using optimal cut point for accuracy.

Examples

Run this code
formulas <- create_formula_objects("am", c("hp", "mpg"), c("disp"),
c("drat"))
mtcars_models <- create_model_objects(formulas, data=mtcars,
type="binomial")
last_model <- mtcars_models[[length(mtcars_models)]]
classification_table(last_model, last_model$model[,1])

Run the code above in your browser using DataLab