Description Usage Arguments Value See Also
Given a model built wtih rrt_reg
,
predict_rrt_reg
allows to get the predictions of the model for new
observations
1 | predict_rrt_reg(obj, newdata, type)
|
obj |
A list output by |
newdata |
A data.frame which contains the same variables as the ones used for the training |
type |
A character string which gives the type of terminal leaf estimator to use. If "exp", IPCW used to grow the tree are used. If "KMloc", a Kaplan-Meier estimator is fitted in each terminal leaf |
A list with the following elements :
pred |
The vector of the predicted values for |
surv |
The matrix which contains the estimated values of the survival curves at
|
time_points |
The vector of the time points where the survival curves are evaluated |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.