knitr::opts_chunk$set( collapse = TRUE, message=FALSE, warning=FALSE, comment = "#>" )
In this analysis, we'll develop a model for predicting births by caesarian from patient characteristics uing the caesarian
data frame.
Model fitting is normally an iterative process. We'll skip this to keep things simple.
library(qacReg) data(caesarian) fit <- glm(caesarian ~ ., family = binomial, data = caesarian) # or # fit <- regress(caesarian ~ ., data = caesarian)
info(fit)
diagnostics(fit)
forest_plot(fit)
me_plots(fit)
relimp(fit)
performance(fit)
pred <- predict(fit, caesarian, type="response") roc_plot(caesarian$caesarian, pred, positive="yes")
lift_plot(caesarian$caesarian, pred, positive="yes")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.