View source: R/survival_ln_mixture_em-predict.R
predict.survival_ln_mixture_em | R Documentation |
Predict from a lognormal_em Mixture Model fitted using EM algorithm.
## S3 method for class 'survival_ln_mixture_em'
predict(object, new_data, type, eval_time, ...)
object |
A |
new_data |
A data frame or matrix of new predictors. |
type |
A single character. The type of predictions to generate. Valid options are:
|
eval_time |
For type = "hazard" or type = "survival", the times for the distribution. |
... |
Not used, but required for extensibility. |
A tibble of predictions. The number of rows in the tibble is guaranteed
to be the same as the number of rows in new_data
.
Categorical predictors must be converted to factors before the fit, otherwise the predictions will fail.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.