Nothing
test_that("predict_frailty works for all prediction types", {
set.seed(123)
dat <- r_frailty(n = 50, baseline = "weibull", bpar = c(2, 1.5), frailty = "gamma", fpar = c(0.8))
fit <- fit_frailty(time = dat$time, status = dat$status, baseline = "weibull", frailty = "gamma")
types <- c("survival", "hazard", "median", "expected", "risk", "marginal", "forecast")
for (tp in types) {
p <- predict_frailty(fit, type = tp, newtime = c(1, 2, 3))
expect_true(all(is.finite(p)), label = paste("Prediction finite for", tp))
}
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.