powered by
MASS::stepAIC()
Explain a binary target using a logistic regression (glm). Model chosen by AIC in a Stepwise Algorithm (MASS::stepAIC()).
explain_logreg(data, target, out = "tibble", ...)
Dataset with results (term, estimate, std.error, z.value, p.value)
A dataset
Target variable (binary)
Output of the function: "tibble" | "model"
Further arguments
data <- iris data$is_versicolor <- ifelse(iris$Species == "versicolor", 1, 0) data$Species <- NULL explain_logreg(data, target = is_versicolor)
Run the code above in your browser using DataLab