Description Usage Arguments Details
View source: R/predict_best_model.R
Predicts the survival/reliability of the given times for the model
1 2 | predict_best_model(m_flexsurvreg, pred_times = c(50, 100, 120, 150, 200) *
1000, conf_int = FALSE, best_model = 1, ...)
|
best_model: |
The rank of model to be used in the plot. If best_model = 2, the second best model will be used in the plot. Can be the name of the distribution of the model |
conf_int: |
If |
m_flexsurvreg: |
list containing at least the alement "models" that has a list of |
pred_times: |
the list of times to predict to. |
...: |
further argumentrs for |
Returns a data.frame with the predicted survival/reliability for range of life times (resulting from a multi_surv_reg()
). If the object is a model itself then the function does not search for the best model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.