View source: R/boost_tree-mboost.R
survival_time_mboost | R Documentation |
mboost
modelsA wrapper for mean survival times with mboost
models
survival_time_mboost(object, new_data)
object |
A model from |
new_data |
Data for prediction |
A tibble.
library(mboost)
boosted_tree <- blackboost(Surv(time, status) ~ age + ph.ecog,
data = lung[-14, ], family = CoxPH()
)
survival_time_mboost(boosted_tree, new_data = lung[1:3, ])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.