Code
cancer <- read_csv("https://anu-bdsi.github.io/workshop-GLM/data/cancer.csv")
cancer_fit <- glm(diagnosis_malignant ~ radius_mean + concave_points_mean,
data = cancer,
family = binomial(link = "logit"))
cancer_augment <- cancer_fit |>
broom::augment(type.predict = "response") |>
mutate(qres = statmod::qresid(cancer_fit))