log_plot: Plot continuous predictors against the logit

Description Usage Arguments Value Examples

View source: R/log_plot.R

Description

only supports binary logistic regression at this time

Usage

1
log_plot(model, data)

Arguments

model

the model to use

data

the data to use, MUST include all the predictors found in model

Value

plot of predictors vs. logit

Examples

1
2
3
4
5
## Not run: 
iris2 <- iris[stringr::str_detect(Species, "setosa", negate = T), ]
irismodel <- glm(Species ~ ., data = iris2, family = binomial)
log_plot(irismodel, iris2)
## End(Not run)

bmcguir8/mcguiR documentation built on Jan. 7, 2021, 8:40 p.m.