Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 0.57 KB | None | 0 0
  1. ## using a new data set to predict the probability of oncholysis at certain times
  2.  
  3. treatment2 <- rep(c("itraconazole", "terbinafine"), 3)
  4. time <- c(0, 0, 4, 4, 12, 12)
  5. newdata <- data.frame(treatment2,
  6.                       time)
  7. predicted.probability <- predict(fit.glmm.bi, newdata = newdata,
  8.         re.form = NA,
  9.         type = "response", allow.new.levels = FALSE,
  10.         na.action = na.pass)
  11.  
  12. tabel <- cbind(newdata, round(predicted.probability, 4))
  13. colnames(tabel) <- c("Treatment", "Time in weeks", "Predicted probability of oncholysis")
  14. pandoc.table(tabel)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement