predict.survSuperLearner | R Documentation |
This function predicts the fitted survival Super Learner on new data.
## S3 method for class 'survSuperLearner'
predict(
object,
newdata,
new.times,
X = NULL,
time = NULL,
event = NULL,
onlySL = FALSE,
threshold = 1e-04,
...
)
object |
Fitted |
newdata |
|
new.times |
|
X |
Original training covariates, which may be needed for obtaining predictions for some learners. Defaults to |
time |
Original training follow-up times, which may be needed for obtaining predictions for some learners. Defaults to |
event |
Original training event indicators, which may be needed for obtaining predictions for some learners. Defaults to |
onlySL |
Logical indicating whether to only fit the learners with non-zero SuperLearner coefficient. Defaults to |
threshold |
Minimum coefficient weight for a learner to be inclued in the super learner prediction. Helps reduce computation time if there are many learners with small weights. Defaults to |
This is the prediction function for survSuperLearner
.
survSuperLearner
returns a named list with the following elements:
call |
The matched call. |
event.libraryNames , cens.libraryNames |
Parsed learner names. |
event.SL.library , cens.SL.library |
Libraries used for fitting. |
event.SL.predict , cens.SL.predict |
|
event.coef , cens.coef |
Fitted SuperLearner coefficients for the model for the conditional survival functions for the event and censoring times, respectively. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.