predict_best_model: Best Fit Prediction

Description Usage Arguments Details

View source: R/predict_best_model.R

Description

Predicts the survival/reliability of the given times for the model

Usage

1
2
predict_best_model(m_flexsurvreg, pred_times = c(50, 100, 120, 150, 200) *
  1000, conf_int = FALSE, best_model = 1, ...)

Arguments

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 TRUE then the confidence intervals will be calculated.

m_flexsurvreg:

list containing at least the alement "models" that has a list of flexsurvreg models. Or an object of class flexsurvreg

pred_times:

the list of times to predict to.

...:

further argumentrs for summary()

Details

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.


leonardommarques/reliabilitytools documentation built on Aug. 1, 2019, 8:03 p.m.