mets icon indicating copy to clipboard operation
mets copied to clipboard

predict.phreg hardening

Open klaus-holst opened this issue 3 years ago • 0 comments

library("mets")
n <- 1e2

t <- rexp(n)
cat <- sample(c("A", "B"), replace = TRUE, size = n)
d <- data.frame(t = t, cat = cat)
model <- phreg(Surv(t)~cat, data = d)
predict(model, newdata = data.frame(cat = c("A", "B")))
predict(model, newdata = data.frame(cat = "A"))

klaus-holst avatar Feb 16 '23 13:02 klaus-holst

I cant find any card for test theory

vrodin avatar Jan 30 '24 13:01 vrodin