explain_logreg | R Documentation |
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", ...)
data |
A dataset |
target |
Target variable (binary) |
out |
Output of the function: "tibble" | "model" |
... |
Further arguments |
Dataset with results (term, estimate, std.error, z.value, p.value)
data <- iris
data$is_versicolor <- ifelse(iris$Species == "versicolor", 1, 0)
data$Species <- NULL
explain_logreg(data, target = is_versicolor)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.