Description Usage Arguments Value Examples
View source: R/boosting_function.R
This function predicts the hazard ratio for each subject in the input dataset.
1 2 |
object |
output from boosting_core function. |
newdata |
data.frame used for prediction. Default is NULL and will use data specified for boosting algorithm. |
... |
ignored |
vector of the hazard ratio for each observation relative to the sample average.
1 2 3 4 5 | data <- simulate_survival_cox(true_beta=c(1,1,1,1,1,0,0,0,0,0))
formula <- as.formula("Surv(time,delta) ~ strata(strata_idx) + V1 + V2 +
V3 + V4 + V5 + V6 + V7 + V8 + V9 + V10" )
boosting.output <- boosting_core(formula, data, rate=0.1, num_iter=500)
predict.boosting(boosting.output)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.