Guest User

Untitled

a guest
Dec 16th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. library("pROC")
  2. lin_mod <- glm(y ~ p + q, family = "...", data = dat_sd)
  3. prob <- predict(lin_mod, type = c("response"))
  4.  
  5. plot(roc(dat_sd$y, prob), print.auc = TRUE)
  6.  
  7. library("pROC")
  8. lin_mod <- 0.3 - 0.07 * data$p + 0.11 * data$q
  9. predict(model1, type = c("response"))
Add Comment
Please, Sign In to add comment